Home Dashboard Directory Help
Search

KeyboardEvent.key gives "Spacebar" instead of " " by Kagami Rosylight


Status: 

Active


Type: Bug
ID: 862610
Opened: 4/27/2014 10:35:16 PM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

http://jsfiddle.net/NAv8Y/

W3C document says the spacebar key should be mapped to " ", not "Spacebar".

http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#keys-whitespace
Note: The space or spacebar key is encoded as ' '.
https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#keys-keyvalues
Details
Sign in to post a comment.
Posted by Microsoft on 5/15/2014 at 9:54 AM
We will be investigating this issue further.

Best Regards,
The Internet Explorer Team
Posted by Kagami Rosylight on 5/1/2014 at 2:38 AM
I downloaded Firefox 29 stable and it gives " ". Maybe it changed the value as of version 29.
Posted by Kagami Rosylight on 5/1/2014 at 2:27 AM
"Originally," I wanted to say that IE SHOULD give " " rather than "Spacebar" as documented by current W3C specification, but I later found that the specification is actually changed after IE11 released.
Thus, IE12 should give " " instead of "Spacebar", but maybe it's not a big problem in IE11.

My IE version is 11.0.9600.17031 anyway.
As of Firefox, the current Nightly build gives " " rather than "Spacebar".
(I didn't know that current Firefox stable build actually gives "Spacebar". Thank you for the information)
Posted by Microsoft on 4/30/2014 at 12:38 PM
Hello,
Thank you for the feedback. I wanted to check with you to find out if the issue is reproducible on your pc after installing the latest update for Internet Explorer? The latest update would bring your IE11 version to 11.0.9600.17031 for Win8.1 or 17041 on Win7. In our testing, we have not been successful in reproducing this issue. Our tests of the latest 2 public builds and 1 future release of IE11 rendered a message box that said "Spacebar" whenever the keydown event of 'pressing the spacebar' was triggered. Also, Firefox and Safari threw the same 'Spacebar' message but Chrome threw an 'Undefined' message when tested.

If you are still feel able to reproduce 'incorrect behavior' after updating your IE11 to the latest public builds, can you please post the version of IE that you have installed?

Best regards,
The Internet Explorer Team
Posted by Kagami Rosylight on 4/27/2014 at 10:39 PM
Got it, I found that the specification was actually changed on November 2013, being later than IE11 release date.
Sign in to post a workaround.