Normalization & format API Reference

normalizeRegisterableHotkey

Function: normalizeRegisterableHotkey()

ts
function normalizeRegisterableHotkey(hotkey, platform): Hotkey;
function normalizeRegisterableHotkey(hotkey, platform): Hotkey;

Defined in: parse.ts:221

Normalizes a string or RawHotkey object to the same canonical hotkey string. Use this in framework adapters instead of branching on formatHotkey(rawHotkeyToParsedHotkey(...)).

Parameters

hotkey

RegisterableHotkey

platform

"mac" | "windows" | "linux"

Returns

Hotkey