diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-17 08:33:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-17 08:34:10 +0200 |
commit | c47260fbc4045d62063ba7f952fda1b46e0a10ea (patch) | |
tree | 4ffd87cbfea2ee0110e7ed79cadb64c99055cc39 /opentrack | |
parent | 59897ded74a13e2a31a60f9443a64a59e97bb386 (diff) |
shortcuts: alias right modifier keys to left modifier keys
Issue: #257
Closes #257
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/shortcuts.cpp | 6 |
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; |