Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference
Normalization & format API Reference

normalizeRegisterableHotkey

Function: normalizeRegisterableHotkey()

ts
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