TanStack
Normalization & format API Reference

normalizeRegisterableHotkey

Call Signature

ts
function normalizeRegisterableHotkey(hotkey, platform?): HotkeyChord;

Defined in: parse.ts:254

Normalizes a chord (string or RawHotkey object) or a sequence to canonical form. Each sequence step is normalized, and a one-step sequence becomes its chord. Use this in framework adapters instead of branching on formatHotkey(rawHotkeyToParsedHotkey(...)).

Parameters

hotkey

RegisterableHotkeyChord

platform?

"mac" | "windows" | "linux"

Returns

HotkeyChord

Call Signature

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

Defined in: parse.ts:258

Normalizes a chord (string or RawHotkey object) or a sequence to canonical form. Each sequence step is normalized, and a one-step sequence becomes its chord. Use this in framework adapters instead of branching on formatHotkey(rawHotkeyToParsedHotkey(...)).

Parameters

hotkey

RegisterableHotkey

platform?

"mac" | "windows" | "linux"

Returns

Hotkey