Skip to main content

binding_mode_for

Function binding_mode_for 

Source
pub fn binding_mode_for(modal: ModalState) -> BindingMode
Expand description

The BindingMode a modal state resolves chords in.

One definition: the host’s dispatcher, the TUI’s runtime and this walk all used to carry their own copy of this match, and a mode added to one of them would silently resolve against the wrong keymap in the others.