[vlc-devel] [PATCH] Small change to let other keyboard layouts have hotkeys

Rémi Denis-Courmont remi at remlab.net
Wed Jan 11 19:11:43 CET 2012

Le mercredi 11 janvier 2012 19:54:01 Militaru Cristian, vous avez écrit :
> okay, if it's about other keyboard layouts, I've seen a key code equal to
> 1065 ( key "A" in Uzbek or Russian keyboard layout - found it using gdb
> ./vlc and other debugging stuff). If you look there, if a key has a bigger
> code than 0xff and it can't be found in the vlc map of keys, it wouldn't
> change at all. So if it's initialized with 0 and the key is in another
> encoding, the function will say that I pressed no key, so it would put
> "Unset" in the hotkey table. If I initialize it with the key I actually
> pressed, it would return the key code which I pressed and the shortcut
> would be set correctly. As far as I've tested, it works correctly.

You cannot blindly pass keys from Qt to VLC.
You have to follow the VLC key symbols, and they are not the same at Qt's.

Rémi Denis-Courmont

More information about the vlc-devel mailing list