Subscribe on changes!

Keyup event IS triggered when a modifier key alone is pressed and released

avatar
Feb 18th 2021

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

avatar
Feb 18th 2021

This is working as expected: it increments only if you keep ctrl pressed and press+release a different key.

avatar
Feb 18th 2021

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 .

avatar
Feb 18th 2021

I read it. It doesn't do what you say

avatar
Feb 18th 2021

For me it does I focus the input Press down the Ctrl key Release it The counter increases

Same reproducible with the Shift key

Now I feel satisfied paying back to the FOSS community I don't like the tone of this conversation and am not interested continuing it in this mode