starmath/source/view.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 29b11fa3b5574dc3f42f55b0716f71054030c6c2
Author: Mike Kaganski <[email protected]>
AuthorDate: Mon Dec 18 20:56:58 2023 +0300
Commit: Mike Kaganski <[email protected]>
CommitDate: Mon Dec 18 20:48:17 2023 +0100
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 <[email protected]>
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);