Hugh McMaster : winex11.drv: Ctrl-Space should generate space, not 0.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 1 09:32:58 CST 2015


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

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Tue Dec  1 21:38:00 2015 +1100

winex11.drv: Ctrl-Space should generate space, not 0.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/keyboard.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 3d68d66..47a9872 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2566,6 +2566,14 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
             e.keycode = XKeysymToKeycode(e.display, XK_KP_Decimal);
     }
 
+    /* Ctrl-Space generates space on Windows */
+    if (e.state == ControlMask && virtKey == VK_SPACE)
+    {
+        bufW[0] = ' ';
+        ret = 1;
+        goto found;
+    }
+
     if (!e.keycode && virtKey != VK_NONAME)
       {
 	WARN_(key)("Unknown virtual key %X !!!\n", virtKey);




More information about the wine-cvs mailing list