Function system_wide_key_state::string_to_key [−][src]
pub fn string_to_key(key_name: &str) -> KeyCode
Expand description
Returns the keycode from the key name.
Examples
assert_eq!(string_to_key("T"), KeyCode::KT);
assert_eq!(string_to_key("some invalid text"), KeyCode::None);