Hotkey Sequence API Reference

UseHotkeySequenceOptions

Interface: UseHotkeySequenceOptions

Defined in: useHotkeySequence.ts:12

Extends

  • Omit<SequenceOptions, "target">

Properties

target?

ts
optional target: 
  | HTMLElement
  | Document
  | Window
  | RefObject<HTMLElement | null>
  | null;

Defined in: useHotkeySequence.ts:21

The DOM element to attach the event listener to. Can be a React ref, direct DOM element, or null. Defaults to document.