Skip to main content

decode_planned_input

Function decode_planned_input 

Source
pub fn decode_planned_input(planned: Input) -> Option<Input>
Expand description

Decode a crate::types::Input (alias: crate::PlannedInput) to the engine-internal Input type.

Returns None for variants the legacy FSM does not dispatch (Mouse, Paste, FocusGained, FocusLost, Resize) and for any special-key variant that maps to Key::Null (e.g. SpecialKey::Insert, SpecialKey::F(_)).

Phase 6.6g.1: extracted from Editor::feed_input so that both the engine-internal path and hjkl_vim::feed_input share the same decode without duplication.