Incorrect keydownevent.key values when numpad's special keys are used

Confirmed Issue #15416945 • Assigned to Anupam S.

Details

Created
Jan 11, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
16.16299
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

You can use this example to reproduce the issue
or just create an input with keydown handler

<input type="text" onkeydown="onKeyDown(event)"> 

function onKeyDown(e) {
  console.log(e.key);
}

Steps to reproduce:

  1. Open the browser console, focus input
  2. Press on numpad minus key

Expected:
e.key === "-"

Actual:
e.key === “Subtract”

According MDN this is an obsolete API

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “wptsixtri”

      Changed Assigned To to “Grisha L.”

      Changed Status to “Not reproducible”

      Changed Assigned To to “Grisha L.”

      Changed Status from “Not reproducible”

      Changed Assigned To from “Grisha L.” to “Anupam S.”

      Changed Status to “Confirmed”

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

    Sign in