Replies: 6 comments 2 replies
-
|
I tried my hand at this, and have a draft PR. It was surprisingly straight forward to do this for non-native menus but I was not able to do the required plumbing for |
Beta Was this translation helpful? Give feedback.
-
|
I see the value in having the shortcut active when the menu bar is hidden. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, thank you for the question. I think Olivier's answer goes in the right direction here. I just changed the title because I first thought you meant the "disabled" property on the menu item: |
Beta Was this translation helpful? Give feedback.
-
My first thought on this is that arguably the menu lowering process arguably creates inconsistency by its very nature. This is why in my draft PR, the lowered form has a
Understood, thanks! In any case if it is decided that my PR is on the right track, I would be fine doing the dirty work if I got some advice about how to properly plumb things to the |
Beta Was this translation helpful? Give feedback.
-
|
After some hacking, I have found that another approach that seems to work is to:
Of course, this is not complete, and given the lack of consensus about how to do this, it seems premature to submit a PR. |
Beta Was this translation helpful? Give feedback.
-
|
I just committed changes to my PR that adds the I briefly tried adding
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm really liking the new menu shortcuts... good work!
I am running into one thing however. How would I go about having menu shortcuts that are active even if the menu is disabled?
The only way I can figure out how to do this is by replicating menu shortcuts in a
FocusScope. Is there a better way to do this? I can't really envision a way to do this that involves keeping theMenuBarobject live, as I realize that in the below example theMenuBaris nonexistant ifshow-menu-barisfalse.Perhaps
MenuBarcould have avisibleproperty that iffalse, would make the menu bar invisible but keep the shortcuts active?Beta Was this translation helpful? Give feedback.
All reactions