Qt: Exclude keypad events from being modifiers
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Sep 2015 21:21:37 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
M
src/platform/qt/ShortcutController.cpp
→
src/platform/qt/ShortcutController.cpp
@@ -311,9 +311,9 @@ return false;
} int key = keyEvent->key(); if (!isModifierKey(key)) { - key |= keyEvent->modifiers(); + key |= (keyEvent->modifiers() & ~Qt::KeypadModifier); } else { - key = toModifierKey(key | keyEvent->modifiers()); + key = toModifierKey(key | (keyEvent->modifiers() & ~Qt::KeypadModifier)); } auto item = m_heldKeys.find(key); if (item != m_heldKeys.end()) {