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

Fixed Issue #8860571


Chris V.
Sep 12, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Fixed in build #
Reported by 5 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:

Tested in Edge 39.14915.1000.0.


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:

      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”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 17093 and is available in our Insider Preview build.

      The fix also includes Escape and the math operation keys on the Numpad. We are tracking the fix for the Windows key in case 16424492.

      For other incorrect key events, please file separate bug reports. 

      Best Wishes,
      The MS Edge Team

    • @James M. does this also fix the AltGraph issue?

    • FYI:

      Here is a table of KeyboardEvent.key value between browsers:
      If still some keys are not yet conformed to the latest spec, please fix them once.

    • Can you please tell us if the AltGraph issue in (non public) ticket 17441993 is fixed now as well?

    • The shim from anonymous works

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

    Sign in