-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
26583: Percussion Pads context menu refinements #26605
26583: Percussion Pads context menu refinements #26605
Conversation
@krasko78 lovely, thanks! |
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.
Thanks very much @krasko78 - looks good!
My only question is about opening the context menu via the keyboard. If you look at padContent
in PercussionPanelPad.qml
, a connection is made between onTriggered
and openFooterContextMenu
.
I'm guessing this doesn't work with these new changes as we don't pass it a pos
argument? (or maybe it does, but we'll probably get some warnings).
Ah, you're right @mathesoncalum, I can't "press" the footer button now when it's focused using space/enter like I can in the Nightly build. (In the video where it says "4.4" I meant to write "Nightly", whoops) Screen.Recording.2025-02-19.at.5.46.15.PM.mov |
@mathesoncalum I've missed that, thanks! I'll fix it. |
8e2b207
to
9bbf3cc
Compare
@mathesoncalum @avvvvve I've pushed a fix for the broken context menu activation with the keyboard and changed "Delete" to "Delete pad". Also removed 'footer' from names related to the context menu as the context menu is not footer-specific any more. I also noticed that the pad could not be activated with the keyboard. This was not related to my changes but I decided to fix it too. In PercussionPanelPad.qml on line 100 when If there is nothing else, I believe the only thing left here is for Ben to tell me about the ellipsis. |
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.
Thanks @krasko78.
On your point about triggerPad
- I opened PR #26616 earlier to address this. I prefer the method used over there because the onTriggered
signal in padNavCtrl
simply isn't called if a modifier is held, so the ui.keyboardModifiers()
bit ends up being redundant.
Indeed this is something we might look to address if we want to support "add to chord" and "insert" functionality using a modifier + space, but let's keep it simple for now.
9bbf3cc
to
ebbd62a
Compare
@mathesoncalum Sounds good. I've removed my change around the modifiers. :) |
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.
Good stuff - thanks for the quick turnaround! ⚡️
@krasko78 looks great! you are right that it should be "Define keyboard shortcut..." with the ellipse. mind swapping that in? otherwise @zacjansheski mind giving this a test too? |
a4ce1f8
to
784a3fd
Compare
There we go! Ellipsis added. |
@zacjansheski Hold on please, the ellipsis is rendered weirdly in Windows. I am looking... |
784a3fd
to
1890189
Compare
Something with the encoding of one particular source file was not quite right. Should be OK now. |
Tested on MacOS 15, Windows 11, Ubuntu 22.04.3. Approved |
Resolves: #26583
Key Points:
StyledMenuLoader
withContextMenuLoader
.show()
method.