Commit 93606602 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Only ignore certain keyboard events if a XLookupString returned a

value (detected by Valgrind).
parent fd160033
......@@ -1010,8 +1010,9 @@ void X11DRV_KeyEvent( HWND hwnd, XKeyEvent *event )
wine_tsx11_unlock();
/* Ignore some unwanted events */
if ((keysym >= XK_ISO_Lock && keysym <= XK_ISO_Last_Group_Lock) ||
keysym == XK_Mode_switch)
if (ascii_chars &&
((keysym >= XK_ISO_Lock && keysym <= XK_ISO_Last_Group_Lock) ||
keysym == XK_Mode_switch))
{
TRACE("Ignoring %s keyboard event\n", TSXKeysymToString(keysym));
return;
......
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