github / hotkey

Trigger an action on an element with a keyboard shortcut.
https://github.github.com/hotkey/
MIT License
3.22k stars 97 forks source link

updated example code in readme.md #5

Closed hkan closed 5 years ago

hkan commented 5 years ago

document.querySelector returns either a null or the first of matching elements. It must be document.querySelectorAll to work as intended.