Function crokey::parse

source · []
pub fn parse(raw: &str) -> Result<KeyEvent, ParseKeyError>
Expand description

parse a string as a keyboard key combination definition.

About the case: The char we receive as code from crossterm is usually lowercase but uppercase when it was typed with shift (i.e. we receive “g” for a lowercase, and “shift-G” for an uppercase)