Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

Commit

Permalink
Use correct keycode when unregistering global shortcuts.
Browse files Browse the repository at this point in the history
charToKeySym() is already correctly used in registerGlobalShortcut().
  • Loading branch information
debfx committed Jul 22, 2015
1 parent af3d896 commit 5bd525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autotype/x11/AutoTypeX11.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5bd525a

Please sign in to comment.