jaywcjlove / hotkeys-js

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

trigger does not trigger * registered events #482

Open banli17 opened 8 months ago

banli17 commented 8 months ago
hotkeys("*", function (event, handler) {
      console.log("event", event); // not trigger
    });
    setTimeout(() => {
      hotkeys.trigger("r");
    }, 3000);