Skip to main content

normalizeRegisterableHotkey

还没翻译译自英文(tanstack.com)本页 10 段都还没译

function normalizeRegisterableHotkey(hotkey, platform?): Hotkey;

Defined in: parse.ts:229

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