]> git.lyx.org Git - features.git/commitdiff
ShortcutOverride again
authorGuillaume Munch <gm@lyx.org>
Mon, 13 Jun 2016 06:39:04 +0000 (07:39 +0100)
committerGuillaume Munch <gm@lyx.org>
Mon, 13 Jun 2016 07:46:15 +0000 (08:46 +0100)
Re: fix for #9218 (not #10119)

Now it matches the example given in the docs. This time tested on qt4.

src/frontends/qt4/GuiWorkArea.cpp

index 185c2f53082bde99db758f126ebba87f7f2191ee..7100c8bc04b09d960636f8a5c8a3f5d8453f5201 100644 (file)
@@ -724,7 +724,7 @@ bool GuiWorkArea::event(QEvent * e)
                return true;
        }
 
-       case QEvent::ShortcutOverride: {
+       case QEvent::KeyPress: {
                // We catch this event in order to catch the Tab or Shift+Tab key press
                // which are otherwise reserved to focus switching between controls
                // within a dialog.
@@ -733,7 +733,7 @@ bool GuiWorkArea::event(QEvent * e)
                        || (ke->key() == Qt::Key_Backtab && (
                                ke->modifiers() == Qt::ShiftModifier
                                || ke->modifiers() == Qt::NoModifier))) {
-                       e->accept();
+                       keyPressEvent(ke);
                        return true;
                }
                return QAbstractScrollArea::event(e);