Keyboard map
Limited availability
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.
To learn more, see
Keyboard: getLayoutMap() method at MDN.
Compatibility
- Chrome 69 Released on 2018-09-04
- Chrome Android 69 Released on 2018-09-04
- Edge 79 Released on 2020-01-15
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- Keyboard Map, from Web Platform Incubator Community Group (W3C).