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

Releases: lupas/vue-keypress

v2.1.2

23 Oct 10:12
Compare
Choose a tag to compare
  • fix(destroy): Fixed not working clean up of listeners (Thanks to Mirko Van Colen)

v2.1.1

27 Apr 20:51
Compare
Choose a tag to compare

✨ New

  • Added basic Typescript typings.

Thanks to @javatlacati for the snippet.

v2.0.0

22 Apr 22:53
Compare
Choose a tag to compare

‼️ 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!

v1.4.0

24 Mar 14:26
Compare
Choose a tag to compare

Added modifiers prop. Define keys (ctrlKey, altKex, shiftKey, metaKey) that need to be pressed before the actual key.

Prop Type Default Possible Values Description c
modifiers Array [] ['ctrlKey', 'shiftKey', 'altKey', 'metaKey'] Keys that needs to be pressed down before the actual key (key Code), e.g. Ctrl+A.

Thanks for @icarito for the input.

v1.2.0

11 Mar 09:36
Compare
Choose a tag to compare
  • Added ability to prevent default. (#3)

Thanks to @anubisthejackle

v1.1.0

08 Jan 22:54
Compare
Choose a tag to compare
  • To save up resources while rendering, a simple empty comment will now be rendered instead of
    .

Thanks to @NickKaramoff