winex11: Fix GetKeyNameText for Right Shift.

This commit is contained in:
Vitaliy Margolen 2008-04-26 17:35:45 -06:00 committed by Alexandre Julliard
parent 4a2f7497ab
commit 964687d7c3
1 changed files with 3 additions and 3 deletions

View File

@ -2164,8 +2164,10 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
/* handle "don't care" bit (0x02000000) */ /* handle "don't care" bit (0x02000000) */
if (!(lParam & 0x02000000)) { if (!(lParam & 0x02000000)) {
switch (vkey) { switch (vkey) {
case VK_LSHIFT:
case VK_RSHIFT: case VK_RSHIFT:
/* R-Shift is "special" - it is an extended key with separate scan code */
scanCode |= 0x100;
case VK_LSHIFT:
vkey = VK_SHIFT; vkey = VK_SHIFT;
break; break;
case VK_LCONTROL: case VK_LCONTROL:
@ -2176,8 +2178,6 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
case VK_RMENU: case VK_RMENU:
vkey = VK_MENU; vkey = VK_MENU;
break; break;
default:
break;
} }
} }