summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-17 08:33:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-17 08:34:10 +0200
commitc47260fbc4045d62063ba7f952fda1b46e0a10ea (patch)
tree4ffd87cbfea2ee0110e7ed79cadb64c99055cc39
parent59897ded74a13e2a31a60f9443a64a59e97bb386 (diff)
shortcuts: alias right modifier keys to left modifier keys
Issue: #257 Closes #257
-rw-r--r--opentrack/shortcuts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack/shortcuts.cpp b/opentrack/shortcuts.cpp
index ba2b7c8e..3ad8e9be 100644
--- a/opentrack/shortcuts.cpp
+++ b/opentrack/shortcuts.cpp
@@ -96,9 +96,9 @@ void KeybindingWorker::run() {
case DIK_RALT:
break;
default:
- k.shift = !!(keystate[DIK_LSHIFT] & 0x80);
- k.alt = !!(keystate[DIK_LALT] & 0x80);
- k.ctrl = !!(keystate[DIK_LCONTROL] & 0x80);
+ k.shift = !!(keystate[DIK_LSHIFT] & 0x80) || !!(keystate[DIK_RSHIFT] & 0x80);
+ k.alt = !!(keystate[DIK_LALT] & 0x80) || !!(keystate[DIK_RALT] & 0x80);
+ k.ctrl = !!(keystate[DIK_LCONTROL] & 0x80) || !!(keystate[DIK_RCONTROL] & 0x80);
k.keycode = i;
receiver(k);
break;