summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-shortcuts.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-28 08:31:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-28 08:31:24 +0200
commit6ef230ff01136a1b180fc18e7078502b89d3c23b (patch)
tree2b3f5c41892012658101bef3588afefae102182d /opentrack/win32-shortcuts.cpp
parent7c7f4d344eef80c6ee672c3c57dedcb1848f3ef4 (diff)
shortcuts: whole is _WIN32, don't check twice nested
Diffstat (limited to 'opentrack/win32-shortcuts.cpp')
-rwxr-xr-xopentrack/win32-shortcuts.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/opentrack/win32-shortcuts.cpp b/opentrack/win32-shortcuts.cpp
index 67f71f41..15e6c66c 100755
--- a/opentrack/win32-shortcuts.cpp
+++ b/opentrack/win32-shortcuts.cpp
@@ -116,7 +116,6 @@ bool win_key::from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers& mods)
{
auto qt = static_cast<QVariant>(qt_).toInt();
auto our_mods = qt & Qt::KeyboardModifierMask;
-#ifdef _WIN32
const auto our_mods_ = our_mods;
our_mods |= Qt::ShiftModifier;
switch (qt & ~Qt::KeyboardModifierMask)
@@ -145,7 +144,6 @@ bool win_key::from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers& mods)
case Qt::Key::Key_Bar: qt = Qt::Key::Key_Backslash; break;
default: our_mods = our_mods_; break;
}
-#endif
const auto key = qt & ~Qt::KeyboardModifierMask;
for (auto& wk : windows_key_sequences)