function normalizeHotkey(hotkey, platform): Hotkey;Defined in: parse.ts:197
Normalizes a hotkey string to its canonical form.
When Mod is allowed for the platform (Command on Mac without Control; Control on Windows/Linux without Meta): emits Mod, then Alt, then Shift, then the key (e.g. Mod+Shift+E, Mod+S).
Otherwise: literal modifiers in Control+Alt+Shift+Meta order, then the key.
Resolves aliases and normalizes key casing (e.g. esc → Escape, a → A).
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'