ToUnicode: ignore CTRL+number keystrokes.

This commit is contained in:
Aric Stewart 2000-11-08 04:29:42 +00:00 committed by Alexandre Julliard
parent 85423c6a6b
commit 7ab639862b

View file

@ -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 */