winex11: Fix Ctrl+Tab translation.
This commit is contained in:
parent
7d47feaebe
commit
cc688148ac
|
@ -1276,7 +1276,7 @@ static void test_ToUnicode(void)
|
|||
state[VK_LCONTROL] |= HIGHEST_BIT;
|
||||
|
||||
ret = ToUnicode(VK_TAB, SC_TAB, state, wStr, 2, 0);
|
||||
todo_wine ok(ret == 0, "ToUnicode for CTRL + Tab didn't return 0 (was %i)\n", ret);
|
||||
ok(ret == 0, "ToUnicode for CTRL + Tab didn't return 0 (was %i)\n", ret);
|
||||
|
||||
ret = ToUnicode(VK_RETURN, SC_RETURN, state, wStr, 2, 0);
|
||||
ok(ret == 1, "ToUnicode for CTRL + Return didn't return 1 (was %i)\n", ret);
|
||||
|
|
|
@ -2679,7 +2679,8 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState
|
|||
if (e.state & ControlMask)
|
||||
{
|
||||
if (((keysym>=33) && (keysym < 'A')) ||
|
||||
((keysym > 'Z') && (keysym < 'a')))
|
||||
((keysym > 'Z') && (keysym < 'a')) ||
|
||||
(keysym == XK_Tab))
|
||||
{
|
||||
lpChar[0] = 0;
|
||||
ret = 0;
|
||||
|
|
Loading…
Reference in New Issue