starmath/source/edit.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit db439064030a8a90171d03c8250398b063499830
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri May 6 14:41:15 2022 +0100
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Sun May 8 10:07:30 2022 +0200

    tdf#148962 starmath's UnicodeNotationToggle (alt+x) getting called twice
    
    Change-Id: Ib150e4825c547c19a30c7b66d3f33904b814a917
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133865
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index e8e79a24e12c..939fe311138b 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -342,7 +342,9 @@ bool SmEditTextWindow::KeyInput(const KeyEvent& rKEvt)
     if (!bConsumed)
     {
         SmViewShell *pView = mrEditWindow.GetView();
-        if ( pView && !pView->KeyInput(rKEvt) )
+        if (pView)
+            bConsumed = pView->KeyInput(rKEvt);
+        if (pView && !bConsumed)
         {
             // F1 (help) leads to the destruction of this
             Flush();

Reply via email to