From 0be52d37100dce2a5010b2a218fb247f18833ef5 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Mon, 13 Jun 2016 07:39:04 +0100 Subject: [PATCH] ShortcutOverride again 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 185c2f5308..7100c8bc04 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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);