Expand description
Headless right-click context menu state and item merging.
Structs§
- Context
Menu Caps - Frontend-supplied capabilities the core cannot observe headlessly.
- Context
Menu Context - Read-only snapshot passed to hooks contributing menu items.
- Context
Menu Item - One row in the right-click context menu.
- Context
Menu State - Headless open/closed menu state + resolved item list.
- KeyHint
- Structured keybinding hint for menu rows.
Constants§
- COPY_ID
- Well-known id for the built-in Copy action.
- CUT_ID
- Well-known context menu item ids for the built-in edit actions.
- DELETE_
ID - Well-known id for the built-in Delete action.
- PASTE_
ID - Well-known id for the built-in Paste action.
- REDO_ID
- Well-known id for the built-in Redo action.
- SELECT_
ALL_ ID - Well-known id for the built-in Select All action.
- UNDO_ID
- Well-known id for the built-in Undo action.
Functions§
- collect_
context_ items - Merges defaults with hook-contributed rows.
- default_
context_ items - Builds the built-in edit rows for the given capabilities.