winex11.drv: Added mapping for Unicode keysyms in ToUnicodeEx.

This commit is contained in:
Alexandre Julliard 2006-11-07 17:27:35 +01:00
parent 4026dfa8f4
commit 187d52bc2d
1 changed files with 11 additions and 2 deletions

View File

@ -2444,10 +2444,19 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
dead_char = KEYBOARD_MapDeadKeysym(keysym);
if (dead_char)
{
{
MultiByteToWideChar(CP_UNIXCP, 0, &dead_char, 1, bufW, bufW_size);
ret = -1;
}
goto found;
}
if (keysym >= 0x01000100 && keysym <= 0x0100ffff)
{
/* Unicode direct mapping */
bufW[0] = keysym & 0xffff;
ret = 1;
goto found;
}
else
{
const char *ksname;