Skip to main content

key_name

Function key_name 

Source
pub fn key_name(text: &str) -> String
Expand description

The name of a key as Hotkey::key and ToolSpec::keys write it, from the raw text of HostEvent::Key: a character in lower case ("a", "+") or a named key ("Escape", "Enter", "Tab", "Backspace", "Delete", "Space", "ArrowLeft", "F2", "Home", "PageUp", …).