Ignore some unwanted keyboard events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Changelog:
    Dmitry Timoshkov <dmitry@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





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux