Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
552 stars 162 forks source link

"Escape" button hotkey does not work on X11 #25

Open alexwennstrom opened 4 years ago

alexwennstrom commented 4 years ago

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?

Skycoder42 commented 4 years ago

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.