Initializes a new keyboard event that the createEvent method created.
Method of dom/KeyboardEventdom/KeyboardEvent
Syntax event.initKeyboardEvent(eventType, canBubble, cancelable, view, key, location, modifiersList, repeat, locale);
Parameters eventType
The name of the event. Sets the value for the type property.
canBubbleWhether the event propagates upward. Sets the value for the bubbles property.
cancelableWhether the event is cancelable and so preventDefault can be called. Sets the value for the cancelable property.
viewThe window on which this event is occurring. Sets the value for the view property.
keyThe key identifier. Sets the value for the key property.
locationThe location of the key on the device. Sets the value for the location property.
modifiersListA space-separated list of any of the following values:
Other implementation specific options may be supported. For example -
The number of times this key has been pressed. Sets the value for the repeat property.
localeThe locale name. Sets the value for the locale property.
Return ValueNo return value
NotesThe information in this page corresponds to the 20100908 outdated working draft edition of the specifications.
Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4