jaywcjlove / hotkeys-js

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

Unable to capture "command or meta" #490

Open Laev opened 1 month ago

Laev commented 1 month ago

hotkeys("ctrl, command", (event) => { console.log("event"); }); or hotkeys("ctrl, meta", (event) => { console.log("event"); }); can not print event

but hotkeys("*", (event) => { console.log("event"); }); successful printing `metakey 'is triggered

oleksandr-danylchenko commented 1 month ago

Duplicate of the https://github.com/jaywcjlove/hotkeys-js/issues/172