You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Backgroud
element.addEventListener('type', callback, { capture: true })https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#capture
current @tanstack/react-hotkeys simply call
element.addEventListener(type, callback)https://github.com/TanStack/hotkeys/blob/%40tanstack/vue-hotkeys%400.4.1/packages/hotkeys/src/hotkey-manager.ts#L396-L397
sometimes it matters for
capturebecause it will trigger before any bubble stage listeners.Feature Request
add
options.capture: booleantoUseHotKeyOptionsOther Libraries
options.useCaptureBeta Was this translation helpful? Give feedback.
All reactions