KeyboardEventInit doesn't support keyCode, charCode

Confirmed Issue #14858976 • Assigned to Travis L.

Details

Author
Dave T.
Created
Nov 28, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Standard affected
UI Events

Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

new KeyboardEvent('keydown’, {charCode: 23}).charCode should return 23.

We are fixing this in Chrome, Safari and Firefox already support this.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “travil”

      Changed Status to “Confirmed”

      Changed Assigned To from “travil” to “Travis L.”

    • What is the status of this issue?
      I am also getting event.keyCode = 0 for below code in Edge.

      const event = new KeyboardEvent('keydown’, {
      code : 'Down’,
      key: 'Down’,
      keyCode: 40,
      } ));

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

    Sign in