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

normalizeHotkeyFromEvent

Function: normalizeHotkeyFromEvent()

ts
function normalizeHotkeyFromEvent(event, platform): Hotkey;

Defined in: parse.ts:292

Normalizes a keyboard event to the same canonical hotkey string as normalizeHotkey.

Parameters

event

KeyboardEvent

The keyboard event (typically keydown)

platform

Target platform for Mod eligibility

"mac" | "windows" | "linux"

Returns

Hotkey