Skip to main content

Module input

Module input 

Source
Expand description

Key handling for the setup wizard.

One entry point, Wizard::handle_key, split into a text-editing mode and a navigation mode. Editing takes priority: while a field is open, letters are letters, so q types a q rather than quitting - losing a half-entered API key to a quit shortcut would be a genuinely bad way to find out about modal input.

Enumsยง

Action
What the loop should do after a key press.