Skip to content
Snippets Groups Projects
Commit 93606602 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

Only ignore certain keyboard events if a XLookupString returned a

value (detected by Valgrind).
parent fd160033
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment