[vlc-devel] commit: XCB/window: Latin-1 non-ASCII keys support ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 3 11:13:20 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan  3 12:08:20 2010 +0200| [54371a95226288788957f8e6fc95f3e0bce51a87] | committer: Rémi Denis-Courmont 

XCB/window: Latin-1 non-ASCII keys support

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54371a95226288788957f8e6fc95f3e0bce51a87
---

 modules/video_output/xcb/keys.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/xcb/keys.c b/modules/video_output/xcb/keys.c
index fa50e80..43bfa72 100644
--- a/modules/video_output/xcb/keys.c
+++ b/modules/video_output/xcb/keys.c
@@ -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 */




More information about the vlc-devel mailing list