You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Later, I decided that since I've already tested some keyboard events, why not test all of them. And so I modified my pen, and found out that all three browsers fired events in a unique way. In short:
chrome fired 2 keydowns, 1 paste, and 2 keyup events firefox fired 2 keydowns, 1 paste, and 1 keyup event, and webkit fired 2 keydowns, 1 keypress, 1 paste, and 1 keyup event
I asked Jake Archibald who I can talk to for standardizing this, and he said to file a bug with the spec, and here I am.
P.S. I'm not sure if there are more keyboard events that I missed. Consequently, I haven't tested those. For now, I feel that these events are enough to demonstrate the discrepancy between browsers, and we can investigate further should it be deemed that this is worth standardizing.
EDIT: Also, obviously there are commands other than (CMD + v) which could potentially trigger different events among browsers. Admittedly I haven't tested any yet.
https://html.spec.whatwg.org/multipage/indices.html#events-2
Hi, I will present the issue in chronological order.
Initially, there was a bug in Mac OS X Safari where paste (CMD + v) was not working Can't paste values through CMD+V in Safari Mac 13.0.5 CoreyGinnivan/whocanuse#31. On further investigation, I found that
webkit
was firingonKeyPress
andonPaste
events, whilechrome
andfirefox
only fired theonPaste
event.I created a pen to demonstrate the issue. https://codepen.io/aesyondu/pen/KKpNXEX
I thought I would file a bug in
webkit
bugzilla and call it a day. https://bugs.webkit.org/show_bug.cgi?id=208088Later, I decided that since I've already tested some keyboard events, why not test all of them. And so I modified my pen, and found out that all three browsers fired events in a unique way. In short:
Excerpt from the codepen:
P.S. I'm not sure if there are more keyboard events that I missed. Consequently, I haven't tested those. For now, I feel that these events are enough to demonstrate the discrepancy between browsers, and we can investigate further should it be deemed that this is worth standardizing.
EDIT: Also, obviously there are commands other than (CMD + v) which could potentially trigger different events among browsers. Admittedly I haven't tested any yet.
MOVED TO: w3c/uievents#261
The text was updated successfully, but these errors were encountered: