Skip to content

canHintedHotkeyFire

ts
function canHintedHotkeyFire(
   hotkey, 
   options?, 
   appHotkeysStore?
): boolean;

Defined in: adapter.ts:692

Whether the hotkey that a hint belongs to can fire: the hotkey its label shows, not just an alternate of it. For an app hotkey, one of its own registrations must have it. Adapters that read registrations and held keys apart select on this, so a hint follows its hotkey when an alternate stays registered.

Parameters

hotkey

| RegisterableHotkey | AppHotkey<string, AppHotkeyBinding> | null | undefined

options?

Pick<HeldModifierOptions, "platform"> = {}

appHotkeysStore?

| AppHotkeysStore<Readonly<Record<string, AppHotkey<string, AppHotkeyBinding>>>> | null

Returns

boolean