The InputEvent()
constructor creates a new InputEvent
.
event = new InputEvent(typeArg, inputEventInit);
DOMString
representing the name of the event.InputEventInit
dictionary, having the following fields: "isComposing"
, optional and defaulting to false
, of type Boolean
, that is the if the event is part of a composition session, after the compositionstart
event and before compositionend
.The InputEventInit
dictionary also accepts fields from UIEventInit
and from EventInit
dictionaries.
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification The definition of 'InputEvent()' in that specification. | Working Draft | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 31 (31) | ? | (Yes) | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | ? | 31.0 (31) | ? | ? | ? |
InputEvent
, the interface of the objects it constructs.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent