winex11.drv: Map VK codes for arrow keys to an X11 keycode manually as we do for other keypad keys.

This commit is contained in:
Dmitry Timoshkov 2006-11-08 14:45:08 +08:00 committed by Alexandre Julliard
parent 063c42cfa6
commit d949867ded
1 changed files with 3 additions and 0 deletions

View File

@ -2393,6 +2393,9 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
}
}
if (virtKey >= VK_LEFT && virtKey <= VK_DOWN)
e.keycode = XKeysymToKeycode(e.display, virtKey - VK_LEFT + XK_Left);
if ((virtKey>=VK_NUMPAD0) && (virtKey<=VK_NUMPAD9))
e.keycode = XKeysymToKeycode(e.display, virtKey-VK_NUMPAD0+XK_KP_0);