Replies: 2 comments
-
|
Do you have a minimal patch that I can use to trigger the context menu with a fake pointer event so that I can play around with this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
My thoughts:
Still needs decision:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a list of stuff I (@cpcallen) have observed about the implementation existing context menu system that might make it less-than-ideally suited for keyboard navigation, from a technical point of view.
BlockSvg.prototype.showContextMenuneeds aPointerEventto know where to place the context menu.PointerEventis also later passed (as a required parameter) to theContextMenuOption'scallbackwhen the menu item is chosen. (This was added in feat!: Add context menu options for workspace comments blockly#8035 to allow the workspace context menu entry for creating a workspace comment to know where to place the new comment).PointerEventappears to be possible, but seems kludgy.I'm wondering whether we might be better to introduce a new kind of menu—a 'block nav menu'—that is less controlled by the block but which would include context menu items from the block.
(An alternative would be to change some of the existing context menu code to reduce the amount of control that developers have over the menu's contents—but obviously that would be a significant, breaking change.)
Beta Was this translation helpful? Give feedback.
All reactions