KeyboardEvent returns non-standard 'key' property values for arrow keys

Fixed Issue #8860571

Details

Author
Chris V.
Created
Sep 12, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
13.14915
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

KeyboardEvent.key values returned by Edge for arrow keys are Down, Left, Right, Up, which are non-standard as W3C specifies ArrowDown, ArrowLeft, ArrowRight, ArrowUp. Chrome and Firefox return standard values.

Values returned for the ‘key’ property can be checked on this page: www.movable-type.co.uk/dev/keyboardevent-key-values.html.

Tested in Edge 39.14915.1000.0.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Travis L.” to “Eugene V.”

      Changed Title from “KeyboardEvent returns non-standard 'key' property values for arrow keys” to “KeyboardEvent returns non-standard 'key' property values for arrow keys”

    • There’s a whole bunch of other keys that are also non-conformant (e.g. Escape, the Windows keys, Numpad keys), and IE and Edge currently send the wrong value if AltGraph is pressed.

      Can these issues also be handled here or should I report a new issue?

    • Microsoft Edge Team

      Changed Assigned To from “Eugene V.” to “Kris K.”

    • Simple shim that remaps non-conformant values to standard ones: https://github.com/shvaikalesh/shim-keyboard-event-key

      Covered everything I could test with on-screen keyboard, no AltGraph fixes (yet)

    • Microsoft Edge Team

      Changed Assigned To from “Kris K.” to “Nishant S.”

      Changed Status from “Confirmed” to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in