.key property gives "Unidentified" when with modifiers
Issue #742263 • Assigned to Bruce L.
Details
- Created
- Aug 26, 2014
- Privacy
- This issue is public.
- Reports
- Reported by 5 people
Sign in to watch or report this issue.
Steps to reproduce
URL:
Repro Steps:
- Add keyboard event listener to any element.
- Check .key property when any key gets pressed.
Expected Results:
Control+’,’ key combination should give ",", not "Unidentified".
Actual Results:
Dev Channel specific:
No
Attachments
0 attachments
Comments and activity
-
Microsoft Edge Team
Bug M. Aug 26, 2014 2014-08-26T13:26:53.777Z
Changed Assigned To to “Tony S.”
Jatinder M. Aug 27, 2014 2014-08-27T20:16:36.34Z
Changed Assigned To from “Tony S.” to “Eugene V.”
Travis L. Aug 28, 2014 2014-08-28T18:45:00.777Z
Changed Assigned To from “Eugene V.” to “IE F.”
Travis L. Aug 28, 2014 2014-08-28T18:45:00.777Z
Changed Status to “Won’t fix”
Travis L. Dec 18, 2014 2014-12-18T19:57:36.58Z
Changed Assigned To to “Travis L.”
Travis L. Dec 18, 2014 2014-12-18T19:57:36.58Z
Changed Status from “Won’t fix”
Nancy L. Jan 5, 2015 2015-01-05T18:17:51.033Z
Changed Status to “Confirmed”
Travis L. Jan 9, 2015 2015-01-09T01:57:52.08Z
Changed Assigned To from “Travis L.” to “Christian F.”
Matt R. Jan 20, 2015 2015-01-20T01:22:51.507Z
Changed Assigned To from “Christian F.” to “IE F.”
Matt R. Jan 20, 2015 2015-01-20T01:22:51.507Z
Changed Status from “Confirmed” to “Won’t fix”
Bogdan B. Jan 31, 2015 2015-01-31T00:59:23.067Z
Changed Assigned To to “Bogdan B.”
Frank O. Jul 21, 2015 2015-07-21T23:37:41.54Z
Changed Assigned To to “Matt R.”
Frank O. Jul 21, 2015 2015-07-21T23:37:41.54Z
Changed Status from “Won’t fix”
Matt R. Feb 10, 2016 2016-02-10T22:27:39.103Z
Changed Assigned To from “Matt R.” to “Aga A.”
OSG V. Feb 10, 2016 2016-02-10T22:34:30.743Z
Changed Assigned To to “Sermet I.”
-
Samuel B. May 12, 2017 2017-05-12T15:52:29.547Z
This is also true of many other keys: ./<>? etc.
-
Anonymous Jul 31, 2017 2017-07-31T23:21:08.257Z
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. -
Anonymous Aug 1, 2017 2017-08-01T22:49:36.17Z
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 thekeyPress
event AND on Windows pressingctrl
+`
doesn’t yield a backtick character and (also unique to Windows) you won’t get akeyPress
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 thekey
property returningUnidentified
.
- You cannot rely on the
-
Anonymous Aug 1, 2017 2017-08-01T22:51:09.863Z
I hope that previous comment provides enough detail; any effort you can put towards fixing this issue would be greatly appreciated.
Thanks,
Todd -
Nicholas K. Feb 1, 2018 2018-02-01T08:59:11.98Z
Also appreciate communication on this - I’m trying to use Slate JS and this prevents key combinations from being used.
-
Microsoft Edge Team
Sermet I. Apr 2, 2018 2018-04-02T22:46:32.193Z
Changed Assigned To from “Sermet I.” to “Bruce L.”
You need to sign in to your Microsoft account to add a comment.
Sign in