QHotkey
QHotkey copied to clipboard
"Escape" button hotkey does not work on X11
Impossible to use Escape button because QKeySequence gives wrong symbol text to XStringToKeysym, QKeySequence("Escape").toString(QKeySequence::NativeText) = "Esc", should return "Escape" because the key symbol is called XK_Escape.
Actualy this looks more like a Qt issue. Maybe use another way to translate a Qt key to KeySym?
This has indeed nothing to do with the library itself, it's a Qt issue. However, I can circumvent this with a workaround (just hard code the ESC exception). I will keep this issue open until I find the time to do so.
Until then, simply use the NativeShortcut class to register your shortcut.