Skip to main content

Module context_menu

Module context_menu 

Source
Expand description

A menu opened at the pointer — a right press on a text surface, say.

It holds the keyboard while it is open: the arrows walk its rows, enter runs the live one and escape closes it, under KEY_CONTEXT, whose bindings are in crate::menu::bindings. Closing by key or by a chosen row hands the focus back to whatever held it before the menu opened. A press elsewhere closes it and leaves the focus to that press.

Structs§

ContextMenu
A view’s context menu: closed, or open with its rows.

Constants§

KEY_CONTEXT
The key context an open menu claims.

Type Aliases§

Slot
Where an owning view keeps its menu.