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

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2015-12-01 21:38:00 +11:00 committed by Alexandre Julliard
parent 2dca999e33
commit 598d334e73
1 changed files with 8 additions and 0 deletions

View File

@ -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);