The KeyboardEvent |code| attribute contains information about the key event that can use used identify the physical key being pressed by the user.

Demos

Documentation

Specification

Specification link


Specification currently under development in a Working Group

Status in Chromium

Blink


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.

  • Shipped/Shipping
  • Positive
  • No signal
  • Positive

Owner

Last updated on 2021-05-21