Re: [w3c/uievents] Need property which gives the (base) unmodified key (#247)

Have you tried using getLayoutMap() API for this?  It's still in the spec proposal stage, but you can try it in Chrome to verify it works for your use case (and let us know how it works for you).

WICG proposal: https://wicg.github.io/keyboard-map/
MDN: https://developer.mozilla.org/en-US/docs/Web/API/Keyboard/getLayoutMap
Original Explainer: https://github.com/wicg/keyboard-map/blob/master/explainer.md

Making this information available is similar to exposing the user's current keyboard layout, and we need to be concerned about fingerprinting and privacy concerns. That's why we had many long discussions about the best way to make this information available.
 
Also note that the |keyCode| and |keyChar| were never properly specified, so there various differences in the implementations (especially with keys outside the standard A-Z part of the keyboard).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/247#issuecomment-548106210

Received on Wednesday, 30 October 2019 20:49:09 UTC