Skip to main content

Module shortcuts

Module shortcuts 

Source
Expand description

Keyboard shortcut definitions for modde.

Shortcuts are defined as static mappings. The app’s subscription system calls handle_key_event() to convert key events into Messages.

Structs§

Shortcut
A keyboard shortcut definition.

Functions§

all_shortcuts
All registered shortcuts.
help_text
Format all shortcuts as a human-readable help string.
match_shortcut
Match a key event against registered shortcuts. Returns the action name if a shortcut matches, None otherwise.