mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 16:31:44 +03:00
reverted patch for #242 (right shift broken for ms remote desktop) to fix bug #2799 (right shift broken for osx).
This commit is contained in:
parent
e2f8e65298
commit
1c89fd2ef6
@ -960,7 +960,18 @@ CMSWindowsKeyState::getKeyMap(CKeyMap& keyMap)
|
||||
// deal with certain virtual keys specially
|
||||
switch (vk) {
|
||||
case VK_SHIFT:
|
||||
vk = VK_LSHIFT;
|
||||
// this is important for sending the correct modifier to the
|
||||
// client, a patch from bug #242 (right shift broken for ms
|
||||
// remote desktop) removed this to just use left shift, which
|
||||
// caused bug #2799 (right shift broken for osx).
|
||||
// we must not repeat this same mistake and must fix platform
|
||||
// specific bugs in code that only affects that platform.
|
||||
if (MapVirtualKey(VK_RSHIFT, 0) == i) {
|
||||
vk = VK_RSHIFT;
|
||||
}
|
||||
else {
|
||||
vk = VK_LSHIFT;
|
||||
}
|
||||
break;
|
||||
|
||||
case VK_CONTROL:
|
||||
|
Loading…
Reference in New Issue
Block a user