mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
Use correct keycode when unregistering global shortcuts.
charToKeySym() is already correctly used in registerGlobalShortcut().
This commit is contained in:
parent
af3d896bdf
commit
5bd525a6dd
@ -160,7 +160,7 @@ uint AutoTypePlatformX11::qtToNativeModifiers(Qt::KeyboardModifiers modifiers)
|
|||||||
|
|
||||||
void AutoTypePlatformX11::unregisterGlobalShortcut(Qt::Key key, 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);
|
uint nativeModifiers = qtToNativeModifiers(modifiers);
|
||||||
|
|
||||||
XUngrabKey(m_dpy, keycode, nativeModifiers, m_rootWindow);
|
XUngrabKey(m_dpy, keycode, nativeModifiers, m_rootWindow);
|
||||||
|
Loading…
Reference in New Issue
Block a user