-
Notifications
You must be signed in to change notification settings - Fork 453
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
right-click-enabler: Allow activation of the right click action by keyboard #2369
Conversation
…yboard This allows for example, selecting the audio output device for visually impaired.
Quality Gate passedIssues Measures |
Can you please explain what it is supposed to do? |
yYou mean that the commit message is not descriptive enough (even with an example of a fixed use-case)? |
Looks like it allows use of the menu key or shift-f10 to emulate right mouse click on the focused widget. Shift-f10 is the standard windows keyboard shortcut to display a context menu. |
I think you need to give the widget focus by tabbing to it. Cursor can be anywhere on screen. However, shift-F10 doesn't work for me on Windows either. The menu key does work though. Oddly, no KeyPress event gets to the rightclickhandler for shift-F10. |
That's what I noticed also by putting there a debug message. |
My mistake... it seems it works (on Linux) by tabbing to the concerned widget and not by mousing over. |
The problem with shift-F10 on Windows, it's that Qt automatically converts it in to a QEvent::ContextMenu - which we are currently filtering, because that was giving us pop-up menus when tap-and-hold is used to emulate right-clicks. So I probably need to revisit that. |
This allows for example, selecting the audio output device for visually
impaired.