Expand description
Shared right-click Cut / Copy / Paste / Select-All context menu for the
text-editing widgets (TextField,
TextArea and
RichTextEdit).
Each widget embeds a TextContextMenu, opens it on right-click with its
current selection / read-only state, routes events into it while it is open,
and dispatches the chosen TextMenuAction back through its OWN existing
keyboard-shortcut handlers. No clipboard logic lives here — this module only
owns the menu presentation and event plumbing, reusing the same
PopupMenu machinery as the menu bar and the popups demo so the styling,
nesting, hover, Escape handling and viewport clamping stay identical.
Structs§
- Text
Context Menu - Embeddable controller wrapping an optional open
PopupMenu.Defaultyields a closed menu, so a widget can hold one with..Default::default().
Enums§
- Text
Menu Action - The four standard editing commands the text context menu offers. The caller maps each back onto its own copy/cut/paste/select-all handler so there is a single implementation shared with the keyboard shortcuts.