TanStack
Normalization & format API Reference

parseRegisterableHotkey

ts
function parseRegisterableHotkey(hotkey, platform): ParsedHotkey;

Defined in: parse.ts:362

Parses a string or raw binding, resolving Mod for the supplied platform. Physical tokens such as [KeyQ] retain code; they never become logical Q.

Parameters

hotkey

RegisterableHotkey

platform

"mac" | "windows" | "linux"

Returns

ParsedHotkey