This API returns a map which translates from KeyboardEvent.code values into strings that can be shown to the user to identify each key. This is not possible with existing web platform APIs because the value that should be shown to the user depends on the keyboard layouts that the user has installed and activated.

Documentation

Specification

Specification link


Specification currently under development in a Working Group

Status in Chromium

Blink>Input


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • Positive

Owner

Comments

See Mozilla Hacks post that calls out this as a missing feature from the web platform (in "What's missing?" section): https://hacks.mozilla.org/2017/03/internationalize-your-keyboard-controls/

Search tags

keyboard, keyboard layout, localization, shortcut key,

Last updated on 2021-05-21