A label of a shortcut (parseShortcut) for a UI: ⇧⌘Z on a Mac, Ctrl+Shift+Z on other platforms.
A KeyboardEvent.code shows as its key: KeyC is C, Digit1 is 1, Backslash is \, NumpadAdd is Num +. A sign that needs Shift
shows without it: Shift+? is ?.
Parameters
shortcut: string
the shortcut string. A string that does not parse is returned as it is.
mac: boolean = ...
Mac labels (⌘, ⌥, ⇧). Default: the platform of the browser.
A label of a shortcut (parseShortcut) for a UI:
⇧⌘Zon a Mac,Ctrl+Shift+Zon other platforms. AKeyboardEvent.codeshows as its key:KeyCisC,Digit1is1,Backslashis\,NumpadAddisNum +. A sign that needs Shift shows without it:Shift+?is?.