Skip to content

isPlatformHotkeys

ts
function isPlatformHotkeys(hotkey): hotkey is { default: unknown } & Partial<Record<HotkeyPlatform, unknown>> & { alternates?: readonly unknown[] };

Defined in: platform.ts:119

Whether a hotkey is a hotkey object with a default, platforms, and alternates, not a chord object: it names default, a platform, or alternates, and neither key nor code.

Parameters

hotkey

unknown

Returns

hotkey is { default: unknown } & Partial<Record<HotkeyPlatform, unknown>> & { alternates?: readonly unknown[] }