Skip to main content

spell_shortcut

Function spell_shortcut 

pub fn spell_shortcut(template: &str) -> String
Expand description

A row of a shortcut reference, as this platform spells it: {cmd:K} is the command key with K (Ctrl+K, or the Command key on a Mac), {cmd+shift:Enter} adds Shift, {alt:Up} is Alt with Up and {F2} is a key on its own, each in the active keyboard’s legends. Everything else is shown as written.

A reference sheet that prints “Ctrl+S” as a string teaches a Mac user the wrong modifier, so every sheet spells its keys here.