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>bb10
parent
92b7122eda
commit
7e271686a7
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue