summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-06 14:41:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-06 17:17:23 +0200
commit531405a695d6bad044545ab96f2eb26e5c6d5778 (patch)
tree941cf555ed68dd02f956d78624495e144e6a9491 /starmath
parent71019ec15bd3fe15385443b68614fd2402e0040f (diff)
tdf#148962 starmath's UnicodeNotationToggle (alt+x) getting called twice
Change-Id: Ib150e4825c547c19a30c7b66d3f33904b814a917 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133942 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/edit.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 6a6bbbf1162a..a0e75f18b408 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -341,7 +341,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();