Web features explorer

Keyboard map

Limited availability

This feature has received a negative standards position from at least one browser vendor — It's very unlikely to ever become Baseline in this current form.

The navigator.keyboard.getLayoutMap() API returns a map from key codes to human readable key names. It can be used to describe buttons to the user when using the keyboard as a set of buttons, such as in games.

Browser support

  • Chrome 69 Released on 2018-09-04
  • Chrome Android 69 Released on 2018-09-04
  • Edge 79 Released on 2020-01-15
  • Firefox Not supported Position: negative Bugs: 1469017
  • Firefox for Android Not supported Position: negative
  • Safari Not supported
  • Safari on iOS Not supported