]> git.sesse.net Git - vlc/commitdiff
XCB/window: Latin-1 non-ASCII keys support
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 3 Jan 2010 10:08:20 +0000 (12:08 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 3 Jan 2010 10:08:20 +0000 (12:08 +0200)
modules/video_output/xcb/keys.c

index fa50e80cef7b8159e12596c466145999c9a8e11c..43bfa72ea7a9449864456f0aca50260b7d104a60 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <stdlib.h>
 #include <inttypes.h>
-#include <ctype.h>
 #include <assert.h>
 
 #include <xcb/xcb.h>
@@ -176,8 +175,8 @@ static uint_fast32_t ConvertKeySym (xcb_keysym_t sym)
         { XF86XK_Reload,           KEY_BROWSER_REFRESH, },
     };
 
-    /* X11 and VLC both use the ASCII code for printable ASCII characters. */
-    if (isascii(sym))
+    /* X11 Latin-1 range */
+    if (sym <= 0xff)
         return sym;
 
     /* Special keys */