[vlc-devel] commit: xcb hotkeys: Cherry pick [25cd592] ( Rafaël Carré )

git version control git at videolan.org
Mon Nov 16 21:48:01 CET 2009


vlc | branch: 1.0-bugfix | Rafaël Carré <rafael.carre at gmail.com> | Mon Nov 16 18:28:59 2009 +0100| [a3ed7240100c5d897c05f37ad25ec23d54f33439] | committer: Rafaël Carré 

xcb hotkeys: Cherry pick [25cd592]

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

 modules/control/globalhotkeys/xcb.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/control/globalhotkeys/xcb.c b/modules/control/globalhotkeys/xcb.c
index 348205f..ca8296f 100644
--- a/modules/control/globalhotkeys/xcb.c
+++ b/modules/control/globalhotkeys/xcb.c
@@ -230,7 +230,6 @@ static const struct
 
     { XK_Return, KEY_ENTER },
     { XK_KP_Enter, KEY_ENTER },
-    { XK_space, KEY_SPACE },
     { XK_Escape, KEY_ESC },
 
     { XK_Menu, KEY_MENU },
@@ -258,16 +257,16 @@ static const struct
 };
 static xcb_keysym_t GetX11Key( unsigned i_vlc )
 {
+    /* X11 and VLC use ASCII for printable ASCII characters */
+    if( i_vlc >= 32 && i_vlc <= 127 )
+        return i_vlc;
+
     for( int i = 0; x11keys_to_vlckeys[i].i_vlc != 0; i++ )
     {
         if( x11keys_to_vlckeys[i].i_vlc == i_vlc )
             return x11keys_to_vlckeys[i].i_x11;
     }
 
-    /* Copied from xcb, it seems that xcb use ascii code for ascii characters */
-    if( isascii( i_vlc ) )
-        return i_vlc;
-
     return XK_VoidSymbol;
 }
 




More information about the vlc-devel mailing list