diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-27 05:11:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-27 05:11:39 +0200 |
commit | 7d4abcf53b63c543721017d5cf787d5b689a8174 (patch) | |
tree | d1ffe52d058c1bd402070d81713fb2b975a7b81d | |
parent | 44abe501830f7df0c994a7fc252244da8f477c35 (diff) |
shortcuts: extract key without modifiers for remap
-rwxr-xr-x[-rw-r--r--] | opentrack/win32-shortcuts.cpp | 2 |
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; |