-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
issue: feature requestDescribes a new feature and why it should be addedDescribes a new feature and why it should be added
Description
Check for duplicates
- I have searched for similar issues before opening a new one.
Problem
No response
Request
The current gesture code currently checks a specific set of objects and calls the showContextMenu function for the object if it is what was right-clicked on.
Instead, the gesture code should:
- Check what is currently focused (this assumes that Make "right click" change the focus to the thing that was right-clicked on #8840 is complete)
- Check if the currently focused thing implements
IHasContextMenu - If it does, call its
showContextMenufunction and stop propagation of the event. If it doesn't, do nothing and don't stop propagation since the click wasn't handled. - The current calls to
bringBlockToFrontandhideChaffshould be moved into their respective objects' implementations ofshowContextMenusince the handling depends on that specific object, and there's no reason for the gesture code to know about it.
Alternatives considered
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
issue: feature requestDescribes a new feature and why it should be addedDescribes a new feature and why it should be added
Type
Projects
Status
In Progress