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

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

ID 862610 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 4/27/2014 10:35:16 PM
Access Restriction Public


W3C document says the spacebar key should be mapped to " ", not "Spacebar".
Note: The space or spacebar key is encoded as ' '.
Sign in to post a comment.
Posted by Microsoft on 11/10/2015 at 12:39 PM
Thank you for the feedback. This issue has been fixed in Microsoft Edge build 10586. We're not presently working on feature bugs in Internet Explorer outside of security-related issues.
Best Regards,
The Microsoft Edge Team
Posted by Kagami Sascha Rosylight on 11/1/2015 at 6:22 AM
I've found that EdgeHTML 13.10576 gives " " rather than "Spacebar". Thanks!
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 Sascha 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 Sascha 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
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 Sascha 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.