Skip to main content

canonical

Function canonical 

pub fn canonical(key: &str) -> String
Expand description

key as one token: its token when it is a live key, else the name a shortcut writes, in the same spelling. Esc and Escape, Space and " ", Up and ArrowUp, E and e are each one token.

The names are the toolkit’s one table ([tilo_ui_graph::keys]), which the compiler checks an app’s declared shortcut with too, so a key an app may write is a key a press answers to.