Skip to main content

parse_binding

Function parse_binding 

Source
pub fn parse_binding(binding: &str) -> Vec<KeyChord>
Expand description

Parse a whitespace-separated chord sequence (e.g. "ctrl+shift+x z"), silently dropping any token that does not parse.

Convenient for trusted, in-code bindings. For user-supplied config where a typo should surface rather than vanish, use try_parse_binding.