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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 8 06:43:01 CST 2006


Module: wine
Branch: master
Commit: d949867dedb41e8673decb72e1ff219cf84a2f52
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d949867dedb41e8673decb72e1ff219cf84a2f52

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Wed Nov  8 14:45:08 2006 +0800

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

---

 dlls/winex11.drv/keyboard.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 7b31203..f4fc7fa 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2393,6 +2393,9 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UIN
 	  }
       }
 
+    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);
 




More information about the wine-cvs mailing list