starmath/source/view.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 66adbc001783fd9eb2ca05358f117ff8cc6b9d84
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Dec 18 20:56:58 2023 +0300
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Dec 19 10:49:55 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 <mike.kagan...@collabora.com>
    (cherry picked from commit 29b11fa3b5574dc3f42f55b0716f71054030c6c2)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160933
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

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);
 

Reply via email to