Qt: Exclude keypad events from being modifiers

This commit is contained in:
Jeffrey Pfau 2015-09-23 21:21:37 -07:00
parent 5ef980116a
commit 2083aa921b
1 changed files with 2 additions and 2 deletions

View File

@ -311,9 +311,9 @@ bool ShortcutController::eventFilter(QObject*, QEvent* event) {
}
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()) {