TanStack
Normalization & format API Reference

areHotkeysEqual

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

Defined in: match.ts:194

Compares normalized binding identity, including all four modifiers. 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