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.
Browser support
MDN documentation
Specifications
- Keyboard Map, from Web Platform Incubator Community Group (W3C).
Usage (according to Chrome Platform Status)
~8.336% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist