From 2083aa921be4658815534aa2b89bab9e041df1ff Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 23 Sep 2015 21:21:37 -0700 Subject: [PATCH] Qt: Exclude keypad events from being modifiers --- src/platform/qt/ShortcutController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/qt/ShortcutController.cpp b/src/platform/qt/ShortcutController.cpp index 7d1189dcd..dcbe004fc 100644 --- a/src/platform/qt/ShortcutController.cpp +++ b/src/platform/qt/ShortcutController.cpp @@ -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()) {