.key property gives "Unidentified" when with modifiers

Issue #742263 • Assigned to Bruce L.


Aug 26, 2014
This issue is public.
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

  1. Add keyboard event listener to any element.
  2. Check .key property when any key gets pressed.


Expected Results:

Control+’,’ key combination should give ",", not "Unidentified".

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Eugene V.”

      Changed Assigned To from “Eugene V.” to “IE F.”

      Changed Status to “Won’t fix”

      Changed Assigned To to “Travis L.”

      Changed Status from “Won’t fix”

      Changed Status to “Confirmed”

      Changed Assigned To from “Travis L.” to “Christian F.”

      Changed Assigned To from “Christian F.” to “IE F.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Assigned To to “Bogdan B.”

      Changed Assigned To to “Matt R.”

      Changed Status from “Won’t fix”

      Changed Assigned To from “Matt R.” to “Aga A.”

      Changed Assigned To to “Sermet I.”

    • This is also true of many other keys: ./<>? etc.

    • I encountered this bug last week while trying to add some new keyboard shortcuts for Slack. Any update on the status of this bug? Looks like this has been open for years now without any movement. Further, this bug is now exclusive to Edge — Chrome, Safari and Firefox all report the key when a modifier is also pressed. Movement on this issue would be greatly appreciated.

    • A bit more on context on how more comprehensive support for the key property would help us at Slack:

      One of the biggest challenges is ensuring keyboard shortcuts can work on non-EN keyboards. For example, we recently introduced a new shortcut for section navigation (ctrl + `). Ensuring this shortcut doesn’t introduce problems for non-EN keyboards is tricky because:

      • You cannot rely on the keyCode property as the ` character may be be mapped to a different physical key on non-EN keyboards
      • You cannot rely on the charCode property as it’s unique to the keyPress event AND on Windows pressing ctrl + ` doesn’t yield a backtick character and (also unique to Windows) you won’t get a keyPress event if the keystroke doesn’t yield a character.

      We (mostly) solved this problem by leveraging the key property as it maps to a character rather than a physical key. I say mostly because:

      • This solution only works for Firefox and Chrome on Windows
      • In Edge pressing ctrl + ` will result in the key property returning Unidentified.
    • I hope that previous comment provides enough detail; any effort you can put towards fixing this issue would be greatly appreciated.


    • Also appreciate communication on this - I’m trying to use Slate JS and this prevents key combinations from being used.

    • Microsoft Edge Team

      Changed Assigned To from “Sermet I.” to “Bruce L.”

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

    Sign in