Skip to main content

Module context_menu

Module context_menu 

Source
Expand description

The menu a right click on a table cell opens: the keys that act on a cell, each line naming its key. A line chosen closes the menu and presses its key, so the menu does exactly what typing the key does. A menu is not a dialog: a click anywhere else closes it.

Structs§

ContextMenu
An open menu: where it was asked for, its lines and the one the cursor is on.
MenuItem
One line: the key it presses, as the key registry spells it, and what it does to the cell. A line with no key ("") does its MenuAction instead.

Enums§

MenuAction
What a line with no key of its own does to the cursor’s column.
MenuKey
What a key does in the open menu.

Constants§

ITEMS
The cell’s keys, in the order the menu lists them.

Functions§

column_items
The lines for the cursor’s column that no key reaches: its type, and, on a text, date or time column, a datetime made from it.