-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix #19987 Menu Navigation not working with Left/Right arrows #20191
Conversation
src/framework/uicomponents/qml/MuseScore/UiComponents/internal/StyledMenu.qml
Outdated
Show resolved
Hide resolved
src/framework/uicomponents/qml/MuseScore/UiComponents/internal/StyledMenu.qml
Outdated
Show resolved
Hide resolved
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.
Just tested your solution - looks good.
Only need to fix my comments. I also see that navigating left/right from the submenu does not work.
Unless this is a typo, navigating from the sub menu does work when I tested. |
5fb2731
to
b92d9e7
Compare
fa1f8d3
to
525a11a
Compare
Hi, I updated the pull request again. Could I get someone to rereview the pull request for me? |
|
||
void NavigableAppMenuModel::openNextMenu() | ||
{ | ||
restoreMUNavigationSystemState(); |
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.
It seems like this shouldn't be here
When switching menus, the navigation will blink
@Eism Hmmm... I added that because it seem to fix the NDVA issue but I do see the blinking issue now. It definitely need some more work that I don't really know how to fix right now. I will just remove that line of code and make a different issue since this isn't in the scope of the current one. Without 2024-05-07.13-55-20.mp4With 2024-05-07.13-59-50.mp4 |
@NinjaNas Can you rebase please? |
042f610
to
6c872ee
Compare
@DmitryArefiev Rebased |
Tested on Win10. bandicam.2024-08-19.14-25-07-332.mp4@NinjaNas @Eism @shoogle Can we add ability to read the next group name after moving with right/left arrows? |
There is also a change in Context menu navigating behavior with arrows (left arrow doesn't return from submenu, only with Esc): bandicam.2024-08-19.16-03-46-216.mp4 |
@DmitryArefiev, I agree the menu name should be spoken, but I think that's a separate issue. The menu name is also not spoken if you press Alt+F for example. While not ideal, I think blind users will work out what is going on. @NinjaNas, you are welcome to fix that in this PR or leave it if you prefer, but I think you should definitely re-enable closing submenus with the Left arrow key in this PR. |
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.
perhaps these changes will help solve the problem with the context menu
src/framework/uicomponents/qml/Muse/UiComponents/StyledMenuLoader.qml
Outdated
Show resolved
Hide resolved
src/framework/uicomponents/qml/Muse/UiComponents/internal/StyledMenu.qml
Outdated
Show resolved
Hide resolved
src/framework/uicomponents/qml/Muse/UiComponents/internal/StyledMenu.qml
Outdated
Show resolved
Hide resolved
src/framework/uicomponents/qml/Muse/UiComponents/internal/StyledMenu.qml
Outdated
Show resolved
Hide resolved
6c872ee
to
d0b8a77
Compare
This was not the cause of the context menu problem, however I made those changes to make the code clearer. I assume The fix was just to move root.close() outside of the if statement for the left arrow button. I think originally, I did not have an if statement so it was opening other menus (other than the AppMenuBar) that it was not supposed to instead of just closing them.
|
Yeah, my bad. I meant |
Add a force close upon using Right Arrow on a non-submenu item Use signals when appropriate to invoke openPrevMenu/openNextMenu Add hasSiblingMenus property to allow context menus using the StyledMenu class to be closed using left/right arrow key
d0b8a77
to
c63042e
Compare
I see how using |
@shoogle I will leave the screen reader issue to you guys. |
Tested #24102 on Win10, Mac13.6, LinuxUbuntu22.04. FIXED Closing submenus with the Left arrow key is also FIXED now
@shoogle Do you think we can merge it to 4.4 now? or wait until this will be implemented in 4.5? FYI @bkunda |
Fix musescore#19987 Menu Navigation not working with Left/Right arrows
Resolves: #19987
Add a force close upon using Right Arrow on a non-submenu item
Use signals when appropriate to invoke openPrevMenu/openNextMenu
Add hasSiblingMenus property to allow context menus using the StyledMenu class to be closed using left/right arrow key