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

Can't bind AltGr + key #4486

Open
ghost opened this issue Dec 20, 2018 · 4 comments
Open

Can't bind AltGr + key #4486

ghost opened this issue Dec 20, 2018 · 4 comments
Labels
component: keyinput Issues related to processing keypresses. priority: 2 - low Issues which are currently not very important.

Comments

@ghost
Copy link

ghost commented Dec 20, 2018

I am trying to bind h,j,k,l with AltGr to navigate tabs and it doesn't seem to work. <Alt-h>, <Alt-j> and so on work but not when using AltGr.

Output of scripts.keytester for AltGr+k is :
script_keytester

and the relevant config.py file

config.bind('<Alt-k>', 'tab-next')
config.bind('<Alt-j>', 'tab-prev')
config.bind('<Alt-h>', 'back')
config.bind('<Alt-l>', 'forward')
config.bind('<AltGr-k>', 'tab-next')
@The-Compiler
Copy link
Member

That modifier value is Qt::GroupSwitchModifier. Looking at 29fdd1a there are some problems in QKeySequence with handling that, so I'm not sure whether it's possible to bind it at all.

@The-Compiler The-Compiler added component: keyinput Issues related to processing keypresses. priority: 2 - low Issues which are currently not very important. labels Dec 20, 2018
@ghost
Copy link
Author

ghost commented Dec 20, 2018

Oh that's a bummer

@user202729
Copy link
Contributor

user202729 commented Dec 20, 2018

@mrpewpew You can bind κ (the character that AltGr-k maps to on your keyboard) instead.

@ghost
Copy link
Author

ghost commented Dec 20, 2018

@user202729 oh boy ! I didn't even notice it was a different character : ĸ and k look so similar. Yes it works. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: keyinput Issues related to processing keypresses. priority: 2 - low Issues which are currently not very important.
Projects
None yet
Development

No branches or pull requests

2 participants