MDN self-hosted library · e01.org

KeyboardEvent: keyIdentifier property

UI Events

no runnable cells web-api-instance-property upstream source

UI Events

The deprecated KeyboardEvent.keyIdentifier read-only property returns a "key identifier" string that can be used to determine what key was pressed. Its non-deprecated replacement is KeyboardEvent.key.

Specifications

Not part of any current specification. This property was part of an old draft of the DOM Level 3 Events Specification, but it was removed in later drafts in favor of KeyboardEvent.key.

Browser compatibility