winex11.drv: Detect an XLookupString that returns Latin-1 and avoid codepage mapping in that case.
This commit is contained in:
parent
187d52bc2d
commit
ac227461ac
|
@ -2512,6 +2512,13 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
|
|||
ret = 0;
|
||||
}
|
||||
|
||||
/* Hack to detect an XLookupString hard-coded to Latin1 */
|
||||
if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym)
|
||||
{
|
||||
bufW[0] = (BYTE)lpChar[0];
|
||||
goto found;
|
||||
}
|
||||
|
||||
/* perform translation to unicode */
|
||||
if(ret)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue