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:
Nick Bolton 2012-07-25 00:06:27 +00:00
parent e2f8e65298
commit 1c89fd2ef6
1 changed files with 12 additions and 1 deletions

View File

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