QHotkey icon indicating copy to clipboard operation
QHotkey copied to clipboard

"Escape" button hotkey does not work on X11

Open alexwennstrom opened this issue 6 years ago • 1 comments

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?

alexwennstrom avatar Sep 17 '19 13:09 alexwennstrom

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.

Skycoder42 avatar Sep 17 '19 15:09 Skycoder42