Skip to main content

key_of

Function key_of 

Source
fn key_of(pressed: &str) -> Option<Key>
Expand description

A KeyboardEvent.key value as a bindable key. The value is what the layout produced, so a shifted digit arrives as its symbol and a letter in either case.