Skip to main content

parse_shortcut

Function parse_shortcut 

Source
pub fn parse_shortcut(s: &str) -> Option<char>
Expand description

The letter of a macro shortcut: "Ctrl+Shift+M", "Cmd+Shift+M", "⌘⇧M" and "m" all give 'M'. None when it is not one letter from A to Z, alone or after Ctrl+Shift (Cmd+Shift): other modifiers ("Ctrl+Alt+M") are refused rather than read as Ctrl+Shift.