Commit b7b4fd03 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

We were returning characters for various CTRL + Symbol keystrokes

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