jaywcjlove / hotkeys-js

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

Use hotkeys once for current state #413

Open goldingdamien opened 1 year ago

goldingdamien commented 1 year ago

How to use hotkeys once using the currently pressed keys? Ideally, a function like hotkeys.once(keys, function() {}) would be used. ※ No need for scoping.

Regards.