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

mainmenu/fancymenu: Fix closing menu on "Meta" shortcut #2133

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

palinek
Copy link
Contributor

@palinek palinek commented Oct 2, 2024

In the workaround for closing the menu the Meta key is reported, whereas the shortcut in lxqt-globalkeys is Super_L.

We make the workaround even dirtier and making it close upon Meta key even if the configured shortcut is Super_L or Super_R.

Closes #2076
Closes #2132

In the workaround for closing the menu the Meta key is reported, whereas
the shortcut in lxqt-globalkeys is Super_L.

We make the workaround even dirtier and making it close upon Meta key
even if the configured shortcut is Super_L or Super_R.
@isf63
Copy link
Contributor

isf63 commented Oct 2, 2024

Tested and works, however my keyboard only has Super_L (no Super_R). If Super_L is registered in lxqt-globalkeys for the menu can Super_R erroneously trigger the same?

@palinek
Copy link
Contributor Author

palinek commented Oct 2, 2024

If Super_L is registered in lxqt-globalkeys for the menu can Super_R erroneously trigger the same?

Yes, as I've written in the comment. If the menu is open (by Super_L or mouse click), then it can be closed by Super_R, if pressed.

Copy link
Member

@tsujan tsujan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks OK, although I haven't tested the patch.

GTM.

@stefonarch
Copy link
Member

Tested too, works fine.

GTM

@palinek palinek merged commit f4440de into master Oct 2, 2024
@palinek palinek deleted the menu-close-meta branch October 2, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Application menu hide inconsistency [Bug] Fancy Menu: Shortcut behaviour
4 participants