function normalizeHotkey(hotkey, platform?): HotkeyChord;Defined in: parse.ts:255
Normalizes a hotkey to its canonical string form. Accepts a chord string, a chord object, a parsed chord, or a sequence of any of these. Each sequence step is normalized, and a one-step sequence becomes its chord.
AnyChord
The hotkey to normalize
Platform
The target platform for resolving Mod (defaults to auto-detection)
normalizeHotkey('shift+meta+e', 'mac') // 'Mod+Shift+E'
normalizeHotkey('ctrl+a', 'windows') // 'Mod+A'
normalizeHotkey({ key: 's', mod: true }) // 'Mod+S'
normalizeHotkey(['g', 'shift+g']) // ['G', 'Shift+G']
normalizeHotkey(parseKeyboardEvent(event)) // The chord the event pressedfunction normalizeHotkey(hotkey, platform?): Hotkey;Defined in: parse.ts:259
Normalizes a hotkey to its canonical string form. Accepts a chord string, a chord object, a parsed chord, or a sequence of any of these. Each sequence step is normalized, and a one-step sequence becomes its chord.
AnyChord | readonly AnyChord[]
The hotkey to normalize
Platform
The target platform for resolving Mod (defaults to auto-detection)
normalizeHotkey('shift+meta+e', 'mac') // 'Mod+Shift+E'
normalizeHotkey('ctrl+a', 'windows') // 'Mod+A'
normalizeHotkey({ key: 's', mod: true }) // 'Mod+S'
normalizeHotkey(['g', 'shift+g']) // ['G', 'Shift+G']
normalizeHotkey(parseKeyboardEvent(event)) // The chord the event pressed