This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

KeyboardEvent

Inherits from UIEventUIEvent

Properties

altKey
:

altLeft
:

char
:

charCode
:

ctrlKey
:

ctrlLeft
:

key
:

keyCode
:

location
:

metaKey
:

repeat
:

shiftKey
:

shiftLeft
:

which
:

Methods

getModifierState
Queries the state of the specified modifier key.
initKeyboardEvent
Initializes a new keyboard event that the createEvent method created.

Events

keydown
:

keypress
Deprecated event for detecting when a key was pressed on the keyboard.

keyup
:

Inherited from UIEvent

Properties

detail

Gets additional, developer defined, information about an event.

view

Gets the window object that an event is generated from.

[object window]

Methods

initUIEvent
Initializes a new user interface event that the createEvent method created.

Events

abort
Fires when the user aborts the download.
activate
Fires when the object is set as the active element.

Standards information

Attributions