Skip to main content

UseHotkeyOptions

还没翻译译自英文(tanstack.com)本页 8 段都还没译

Defined in: useHotkey.ts:16

Extends

  • Omit<HotkeyOptions, "target">

Properties

target?

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

Defined in: useHotkey.ts:22

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