jaywcjlove / hotkeys-js

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

Execute from KeyboardEvent #414

Open goldingdamien opened 1 year ago

goldingdamien commented 1 year ago

When moving from manually checking KeyboardEvent keys, etc., to this library, it would be really useful if it was possible to use this library from the KeyboardEvent so only the keys logic would initially need to be changed. I am assuming that internally, there is a function that does this even if already not exposed. Could this feature be made public? Regards.