Skip to main content

keybind_chords_for_key

Function keybind_chords_for_key 

Source
pub fn keybind_chords_for_key<'a>(
    key: &str,
    keymap: &'a KeyMap,
) -> &'a [KeyChord]
Expand description

What: Look up the in-memory chord list for a canonical keybind action key.

Inputs:

Output:

  • Slice of chords currently bound to the action; empty when the action is not recognized (treated as unbound).

Details:

  • Mirrors the dispatch in theme::settings::parse_keybinds::apply_keybind so editor read/write paths stay in sync with the parser.