Closed garykac closed 4 years ago
Previous versions of the UIEvents spec proposed queryKeyCap to get the symbol printed on the physical key cap (by assuming that it matched the locale).
See https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm for an old version of the spec that described this method.
Also see this WICG discussion, where something similar is proposed: https://discourse.wicg.io/t/keyboardevent-getcharacterbykey-key-modifierlist/1857
See this related proposal : https://github.com/garykac/keyboard-map/blob/master/proposal.md
Editor's Draft for proposal: https://wicg.github.io/keyboard-map/
Previous versions of the UIEvents spec proposed queryKeyCap to get the symbol printed on the physical key cap (by assuming that it matched the locale).
See https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm for an old version of the spec that described this method.
Also see this WICG discussion, where something similar is proposed: https://discourse.wicg.io/t/keyboardevent-getcharacterbykey-key-modifierlist/1857