Commit a442d267 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

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

parent f0307d93
...@@ -2566,6 +2566,12 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState, ...@@ -2566,6 +2566,12 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
lpChar[0] = 0; lpChar[0] = 0;
ret = 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 */ /* Hack to detect an XLookupString hard-coded to Latin1 */
if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym) if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment