all repos — mgba @ 2083aa921be4658815534aa2b89bab9e041df1ff

mGBA Game Boy Advance Emulator

Qt: Exclude keypad events from being modifiers
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Sep 2015 21:21:37 -0700
commit

2083aa921be4658815534aa2b89bab9e041df1ff

parent

5ef980116a65c9eb31343859f87d6e3b74ffd52f

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/ShortcutController.cppsrc/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()) {