← Back to release summary

UIEvents KeyboardEvent |key| attribute

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 51)
Intent stage
None

Summary

The KeyboardEvent |key| attribute contains information about the character being generated by the key event.

Standards & signals

Docs: http://www.w3.org/TR/uievents/#interface-KeyboardEvent https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key

Samples: https://googlechrome.github.io/samples/keyboardevent-key-attribute/ https://w3c.github.io/uievents/tools/key-event-viewer.html

View on chromestatus.com