Commit 964687d7 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

winex11: Fix GetKeyNameText for Right Shift.

parent 4a2f7497
...@@ -2164,8 +2164,10 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize) ...@@ -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) ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment