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
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference
Normalization & format API Reference

areHotkeysEqual

ts
function areHotkeysEqual(
   left, 
   right, 
   platform?): boolean;
function areHotkeysEqual(
   left, 
   right, 
   platform?): boolean;

Defined in: match.ts:190

Compares normalized hotkey identity, including all four modifiers. Sequences are equal when every step is equal; a one-step sequence equals its chord. Aliases resolve on the supplied platform. A physical code and a logical key remain distinct even when one keyboard event could match both.

Parameters

left

RegisterableHotkey

RegisterableHotkey

platform?

"mac" | "windows" | "linux"

Returns

boolean