summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-05 14:21:51 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-12 15:23:15 +0200
commit7e271686a79860a92ac4c63d666a400732aef038 (patch)
treef57389bf49ab7d44d91761a302362991e57e69a6 /src/gui/kernel
parent92b7122eda835537a6bbafb41beb858f38aed538 (diff)
Exclude all modifiers as candidates for shortcuts
If we're going to limit shortcuts to non-modifiers, we should at least include all of the modifiers, otherwise we'll end up passing through e.g. Key_CapsLock. Change-Id: If11758f85d06f75e9b9c2d2a57d4a4915ff72317 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qshortcutmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qshortcutmap.cpp b/src/gui/kernel/qshortcutmap.cpp
index e79aaacd1a..7fabfc5f54 100644
--- a/src/gui/kernel/qshortcutmap.cpp
+++ b/src/gui/kernel/qshortcutmap.cpp
@@ -359,7 +359,7 @@ QKeySequence::SequenceMatch QShortcutMap::nextState(QKeyEvent *e)
Q_D(QShortcutMap);
// Modifiers can NOT be shortcuts...
if (e->key() >= Qt::Key_Shift &&
- e->key() <= Qt::Key_Alt)
+ e->key() <= Qt::Key_ScrollLock)
return d->currentState;
QKeySequence::SequenceMatch result = QKeySequence::NoMatch;