Skip to main content

Module modal

Module modal 

Source
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§

ConfirmAction
Action to execute when a confirm overlay is accepted with y or 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 Debug and survives through the crate::overlay::OverlayStack.