summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-27 05:11:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-27 05:11:39 +0200
commit7d4abcf53b63c543721017d5cf787d5b689a8174 (patch)
treed1ffe52d058c1bd402070d81713fb2b975a7b81d
parent44abe501830f7df0c994a7fc252244da8f477c35 (diff)
shortcuts: extract key without modifiers for remap
-rwxr-xr-x[-rw-r--r--]opentrack/win32-shortcuts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack/win32-shortcuts.cpp b/opentrack/win32-shortcuts.cpp
index 64ff01dc..67f71f41 100644..100755
--- a/opentrack/win32-shortcuts.cpp
+++ b/opentrack/win32-shortcuts.cpp
@@ -119,7 +119,7 @@ bool win_key::from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers& mods)
#ifdef _WIN32
const auto our_mods_ = our_mods;
our_mods |= Qt::ShiftModifier;
- switch (qt & ~Qt::ShiftModifier)
+ switch (qt & ~Qt::KeyboardModifierMask)
{
case Qt::Key::Key_BraceLeft: qt = Qt::Key::Key_BracketLeft; break;
case Qt::Key::Key_BraceRight: qt = Qt::Key::Key_BracketRight; break;