From b5bd66e86f3540fd7d4ceafab25483fb336df79c Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 12 Aug 2003 18:54:50 +0000 Subject: [PATCH] Ignore some keyboard events. In any case we don't know how to handle them. --- dlls/x11drv/keyboard.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/x11drv/keyboard.c b/dlls/x11drv/keyboard.c index ef355ce0223..35d7fde36b6 100644 --- a/dlls/x11drv/keyboard.c +++ b/dlls/x11drv/keyboard.c @@ -1007,6 +1007,14 @@ void X11DRV_KeyEvent( HWND hwnd, XKeyEvent *event ) ascii_chars = XLookupString(event, Str, sizeof(Str), &keysym, NULL); wine_tsx11_unlock(); + /* Ignore some unwanted events */ + if ((keysym >= XK_ISO_Lock && keysym <= XK_ISO_Last_Group_Lock) || + keysym == XK_Mode_switch) + { + TRACE("Ignoring %s keyboard event\n", TSXKeysymToString(keysym)); + return; + } + TRACE_(key)("state = %X\n", event->state); /* If XKB extensions are used, the state mask for AltGr will use the group