winex11: control + enter should generate '\n' instead of '\r'.

This commit is contained in:
Lei Zhang 2008-04-23 23:57:26 -07:00 committed by Alexandre Julliard
parent f0307d9366
commit a442d2675e
1 changed files with 6 additions and 0 deletions

View File

@ -2566,6 +2566,12 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
lpChar[0] = 0;
ret = 0;
}
else if((lpKeyState[VK_CONTROL] & 0x80) /* Control is pressed */
&& (keysym == XK_Return || keysym == XK_KP_Enter))
{
lpChar[0] = '\n';
ret = 1;
}
/* Hack to detect an XLookupString hard-coded to Latin1 */
if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym)