winex11: Fix Ctrl+Tab translation.

This commit is contained in:
André Hentschel 2009-05-27 19:55:23 +02:00 committed by Alexandre Julliard
parent 7d47feaebe
commit cc688148ac
2 changed files with 3 additions and 2 deletions

View File

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

View File

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