Use correct keycode when unregistering global shortcuts.

charToKeySym() is already correctly used in registerGlobalShortcut().
This commit is contained in:
Felix Geyer 2015-07-22 20:38:03 +02:00
parent af3d896bdf
commit 5bd525a6dd

View File

@ -160,7 +160,7 @@ uint AutoTypePlatformX11::qtToNativeModifiers(Qt::KeyboardModifiers modifiers)
void AutoTypePlatformX11::unregisterGlobalShortcut(Qt::Key key, Qt::KeyboardModifiers modifiers)
{
KeyCode keycode = XKeysymToKeycode(m_dpy, keyToKeySym(key));
KeyCode keycode = XKeysymToKeycode(m_dpy, charToKeySym(key));
uint nativeModifiers = qtToNativeModifiers(modifiers);
XUngrabKey(m_dpy, keycode, nativeModifiers, m_rootWindow);