Skip to main content

parse_key

Function parse_key 

Source
pub fn parse_key(name: &str, tool: &str) -> Result<Key, String>
Expand description

Parse a key name into a Key.

Named keys are matched case-insensitively; a single CHARACTER is taken literally — an uppercase letter is REJECTED (the caller must hold shift explicitly), matching the Key::Char contract in xa11y.