Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexwennstrom opened this issue Sep 17, 2019 · 1 comment
Open

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

alexwennstrom opened this issue Sep 17, 2019 · 1 comment
Assignees
Labels

Comments

@alexwennstrom
Copy link

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 Skycoder42 self-assigned this Sep 17, 2019
@Skycoder42
Copy link
Owner

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 Skycoder42 pinned this issue Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants