This repository has been archived by the owner on Oct 23, 2022. It is now read-only.
Releases: lupas/vue-keypress
Releases · lupas/vue-keypress
v2.1.2
v2.1.1
v2.0.0
‼️ BREAKING CHANGES: v1.x to v2 Migration
- Event
@pressed
is now called@success
- Prop
event
is now calledkeyEvent
- 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
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.