jaywcjlove / hotkeys-js

➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
https://jaywcjlove.github.io/hotkeys-js
MIT License
6.57k stars 405 forks source link

What is the capture option used for in hotkeys()? #449

Open rouilj opened 9 months ago

rouilj commented 9 months ago

Is there an example of using the capture option? When would you want to use it?

hoangvu12 commented 9 months ago

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#capture

It is useCapture of addEventListener