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