Keyup event IS triggered when a modifier key alone is pressed and released
Version
3.0.5
Reproduction link
https://codepen.io/emirotin/pen/BaQZwme
Steps to reproduce
Visit the pen Focus the input Press and release the Ctrl key
What is expected?
Note that modifier keys are different from regular keys and when used with keyup events, they have to be pressed when the event is emitted. In other words, keyup.ctrl will only trigger if you release a key while holding down ctrl. It won't trigger if you release the ctrl key alone
What is actually happening?
The view is updated and shows 1
This is working as expected: it increments only if you keep ctrl pressed and press+release a different key.
Please read my description It does what you say but it also triggers an event when Ctrl is pressed and released on its own which clearly contradicts the quote from the docs which I provided
On Thu, Feb 18, 2021, 18:54 Eduardo San Martin Morote < notifications@github.com> wrote:
This is working as expected: it increments if you keep ctrl pressend and press+release a different key.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vuejs/vue-next/issues/3256#issuecomment-781485932, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEAMCCMVEFH5GAU6FMZLVTS7VA5HANCNFSM4X2UJPUQ .