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

Using for consecutive key presses, eg Konami Code #101

Open gorkamolero opened 5 years ago

gorkamolero commented 5 years ago

Hi! Congrats on the library. Works great. I'd like to add an easter egg to my app, appearing on a combination of keys a friend an I know from our childhood. But they are consecutive keys, as in a fighting game in megadrive. Let's say left right left right something. Is this possible?

jaywcjlove commented 5 years ago

@gorkamolero You can try it maybe.