Ignore some unwanted keyboard events
Dmitry Timoshkov
dmitry at baikal.ru
Tue Aug 12 08:50:00 CDT 2003
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Ignore some keyboard events. In any case we don't know how to handle them.
--- cvs/hq/wine/dlls/x11drv/keyboard.c Fri Aug 08 01:57:34 2003
+++ wine/dlls/x11drv/keyboard.c Tue Aug 12 13:18:20 2003
@@ -1007,6 +1007,14 @@
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
More information about the wine-patches
mailing list