function normalizeHotkey(hotkey, platform?): Hotkey;Defined in: parse.ts:205
Normalizes a hotkey string to its canonical form.
Key | string & object
The hotkey string to normalize
"mac" | "windows" | "linux"
The target platform for resolving Mod (defaults to auto-detection)
The normalized hotkey string
normalizeHotkey('shift+meta+e', 'mac') // 'Mod+Shift+E'
normalizeHotkey('ctrl+a', 'windows') // 'Mod+A'
normalizeHotkey('esc') // 'Escape'