Skip to main content

Module menu

Module menu 

Source
Expand description

Menus and the keyboard shortcuts of their items, which every platform builds with its own menus.

Structs§

Menu
A menu: its title, and its entries in order. A is what an item does: an action the app runs, or, as backends receive it, the number of the item.
Shortcut
A keyboard shortcut: the platform’s command key, Cmd on macOS and Ctrl on Windows, with key, and Shift or Alt (Option on macOS) when set. repr(C) because compiled apps store it as is.

Enums§

Key
A key a shortcut presses with the platform’s command key.
MenuEntry
ShortcutError
Why a shortcut can’t be read.
SystemCommand
The commands the system’s own menus and text fields take shortcuts for, which an app’s menus leave alone.

Constants§

ALT
SHIFT
The modifiers a shortcut may add to the command key, as code writes them.