Commit 7ab63986 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

ToUnicode: ignore CTRL+number keystrokes.

parent 85423c6a
......@@ -1532,6 +1532,15 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
*(char*)lpChar = 0;
ret = 0;
}
/* more areas where X returns characters but Windows does not
CTRL + number */
if ((lpKeyState[VK_CONTROL] & 0x80)&&(keysym>=48)&&
(keysym<=57))
{
*(char*)lpChar = 0;
ret = 0;
}
/* We have another special case for delete key (XK_Delete) on an
extended keyboard. X returns a char for it, but Windows doesn't */
......
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