Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

v2.0.0

Compare
Choose a tag to compare
@lupas lupas released this 22 Apr 22:53
· 55 commits to master since this release

‼️ BREAKING CHANGES: v1.x to v2 Migration

  • Event @pressed is now called @success
  • Prop event is now called keyEvent
  • The @pressed event (or now @success event) returns now an object with all the info and more

✨ New

  • Support multiple keys (#6): You can now define multiple keys
    that should be handled
  • Event @any fires with every keypress, no matter what you are looking for
  • Event @wrong fires when the wrong key was pressed
  • All events now return an object with a lot more data regarding the key event

🐜 Bug Fixes

  • (#8) Key press sequences with a superset of modifiers should not trigger the pressed event

Thanks A LOT to @J-Rojas for his PR and all his effort!