-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Expose PopupMenu
activate_item_by_event
method
#81621
Expose PopupMenu
activate_item_by_event
method
#81621
Conversation
4438769
to
be7897e
Compare
@AThousandShips Could this be added to the 4.2 milestone? The reason I did this PR is because a serious project I'm working on depends on it. If not, I'll just use my own fork until it gets merged. |
If it gets approved soon it'll be added to it, but enhancements fit more on a flexible schedule |
Got it, thanks for the quick answer. |
I've tested this PR with my project. From what I can tell, everything works as intended. |
c3c2cc7
to
2900ace
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first I was confused how this solves the issue, but seems like it's the menu's owner's responsibility to call this method. In this case exposing it makes sense, in case users want to make custom menus.
2900ace
to
76fad10
Compare
Thanks! |
Fixes #40836
Exposes the method that
Control
s likeMenuButton
use to propagate input information to thePopupMenu
, so that accelerator and shortcut functionality isn't limited to thoseControl
s.