Expand description
Modal overlay types.
The TUI keeps a LIFO stack of modals via crate::overlay::OverlayStack.
The topmost modal owns keyboard focus and is rendered on top of the current
tab. Each modal carries a KeyPolicy that the keymap resolver uses to
decide whether q closes the overlay or inserts a literal character.
Re-exports§
pub use crate::form::Form;
Enums§
- Confirm
Action - Action to execute when a confirm overlay is accepted with
yor Enter. - KeyPolicy
- Keyboard handling policy for an overlay.
- Modal
- Anything renderable as an overlay. Kept as an enum rather than a trait
object so modal state stays
Debugand survives through thecrate::overlay::OverlayStack.