diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-18 20:56:58 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-18 20:48:17 +0100 |
commit | 29b11fa3b5574dc3f42f55b0716f71054030c6c2 (patch) | |
tree | fb3666c7f16910287d41d78bcaca0e1ee6b4cbf7 /starmath | |
parent | 62d80667f5b164e7a6377c22b0f37407ccf8eb59 (diff) |
tdf#158766: handle Escape key in SmGraphicWidget
Same as in SmEditTextWindow
Change-Id: I4088fa2deb8b14d5cc0f48423dba492c45b0f61f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160927
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index fd765986c659..8f88b5ced643 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -707,6 +707,12 @@ bool SmGraphicWidget::KeyInput(const KeyEvent& rKEvt) return true; } + if (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE) + { + // Terminate possible InPlace mode + return GetView().Escape(); + } + if (!SmViewShell::IsInlineEditEnabled()) return GetView().KeyInput(rKEvt); |