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: Overlay > CmdLine > ConsoleInput > ViewPane. Both crate::keymap::translate 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.