Skip to main content

Module focus

Module focus 

Source
Expand description

Focus-target resolver.

A single canonical precedence order governs both key translation and event dispatch: Pending > Drag > Overlay > Menu > CmdLine > ConsoleInput > ViewPane. Both crate::keymap::handle_key and crate::event::apply call current_focus so neither can drift from the other.

Enums§

FocusTarget
Which layer currently owns keyboard input.

Functions§

current_focus
Canonical focus resolver — both translate and apply must call this.