diff options
author | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-09-30 18:47:42 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-10-07 11:39:10 +0000 |
commit | d9541bde71f1adc81753283dc40ea6a8af009d8a (patch) | |
tree | 5702e31712e8083f2125426c2ced0fcf54b7ecae | |
parent | 933cff33cb53c88ec5a11b8f53955054c648e21b (diff) |
Remove special handling of shortcut events
The logic is already handled in QGuiApplicationPrivate::processKeyEvent(),
so doing it in the QQuickWindow is redundant. In addition, the logic will
soon move to QPA which will break this code if left in.
Change-Id: I4d22362dedfa62ada4ab4683e15c6c0cad45e4b5
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index 48b7c5841a..18ffcb3732 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -1434,13 +1434,6 @@ void QQuickWindowPrivate::deliverKeyEvent(QKeyEvent *e) { Q_Q(QQuickWindow); -#ifndef QT_NO_SHORTCUT - // Try looking for a Shortcut before sending key events - if (e->type() == QEvent::KeyPress - && QGuiApplicationPrivate::instance()->shortcutMap.tryShortcutEvent(q->focusObject(), e)) - return; -#endif - if (activeFocusItem) q->sendEvent(activeFocusItem, e); #ifdef Q_OS_MAC |