class js.html.KeyboardEvent extends UIEvent
Available on js
Deprecated
KeyboardEvent
objects describe a user interaction with the keyboard. Each event describes a key; the event type (keydown
, keypress
, or keyup
) identifies what kind of activity was performed.
Note: The
KeyboardEvent
interface is deprecated in DOM Level 3 in favor of the new TextInput
interface and the corresponding textinput
event, which have improved support for alternate input methods. However, DOM Level 3 textinput
events are not yet implemented in Gecko (as of version 6.0), so code written for Gecko browsers should continue to use KeyboardEvent
for now.Documentation for this class was provided by MDN.