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

Tab accelerator not working on Linux #242

Closed
probablykasper opened this issue Nov 14, 2021 · 2 comments
Closed

Tab accelerator not working on Linux #242

probablykasper opened this issue Nov 14, 2021 · 2 comments

Comments

@probablykasper
Copy link
Member

Not sure if it's just happening for me, but Tab does not seem to work for menu bar accelerators on Linux. The shortcut shows up correctly as Tab in the menu, but doesn't trigger when I press Tab.

Judging by the source code, it looks like Tab should work.

I'm running Ubuntu 20.04.

@amrbashir
Copy link
Member

related discussion Guake/guake#152

@amrbashir
Copy link
Member

Guake solved this in Guake/guake#1902 by keeping a map of keybindings (aka accelerators) and their action, then listened to key-press event on the window and if it matched one of the keybindings, they manually execute the associated action. This is manual and I think they don't even rely on gtk menu accelerators at all.

I don't think we can do much here but tao users can listen to tao::WindowEvent::Key and execute their action if it matched their Tab accelerator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants