Skip to main content

Module keymap

Module keymap 

Source
Expand description

Keyboard and mouse handling for the panes.

Precedence: an open modal owns everything (modal_keys); then the global toggles; then the focused column. In the management column the arrows do all the moving — ↑/↓ over rows, ←/→ along a row’s buttons — and Enter acts on whatever the cursor is on. Everything funnels into actions::run with an InstanceAction, so a letter, a button and a click do the same thing.

Enums§

Outcome
What the event loop should do after handling an event.

Functions§

handle_key
handle_mouse
handle_ui_msg
Fold the result of a spawned action back into the UI: on success the originating modal closes and the summary goes to the stream; on failure the modal stays open showing the error, so the user can fix and retry.