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:
|
||||
// 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