pub fn dispatch_replace(handle: &KeymapHandle, chord: &KeyChord) -> ActionExpand description
Dispatch a key event through the keymap registry.
Matches today’s translate_replace semantics:
<C-…>->Action::None. (The legacy match table short-circuitedCONTROLand onlyCONTROL;<M-Esc>still exits to Normal because the legacymatchran onevent.codealone after the CONTROL guard.)- Strip the remaining modifiers (
ALT/SHIFT/SUPER) before the lookup so<M-Esc>matches the bare-<Esc>literal and<M-x>falls through the bare-char wildcard. For bare-char chords this is a no-op:KeyChord::from_eventalready strips redundant SHIFT (case encodes it). For specials like<Esc>it is the legacy “match by KeyCode alone” semantics expressed in trie terms. Bound-> the bound action, with the wildcardAction::OverwriteChar('\0')placeholder substituted by the captured char.Unbound/Partial->Action::None. Replace mode has no multi-key chords today;Partialwould only arise if a user-config / plugin pushes a layer with multi-key bindings.