Skip to main content

Module modal

Module modal 

Source
Expand description

Modal overlay stack.

The TUI keeps a LIFO stack of modals. The topmost modal owns the keyboard focus and is rendered on top of the current tab. Key events are first offered to the topmost modal; only if it doesn’t consume them do they fall through to the tab.

Structs§

ConfigSetModal
A config-set modal: two input fields (name + value) plus a Save/ Cancel action. Placeholder for richer forms later.
Stack
Stack of modals. The topmost (last-pushed) modal is the active one.

Enums§

ConfigSetField
Modal
Anything renderable-as-modal. Kept as an enum rather than a trait object so modal state stays Clone/Debug and survives through Stack’s Vec.