InputEvent
Experimental: Это экспериментальная технология
Так как спецификация этой технологии ещё не стабилизировалась, смотрите таблицу совместимости по поводу использования в различных браузерах. Также заметьте, что синтаксис и поведение экспериментальной технологии может измениться в будущих версиях браузеров, вслед за изменениями спецификации.
The InputEvent
interface represents an event notifying of editable content change.
Конструктор
InputEvent()
(en-US)-
Создаёт
InputEvent
объект.
Свойства
This interface inherits properties from its parents, UIEvent
(en-US) and Event
.
InputEvent.data
(en-US)Только для чтения-
Returns a
DOMString
with the inserted characters. This may be an empty string if the change doesn't insert text (such as when deleting characters, for example). InputEvent.dataTransfer
(en-US)Только для чтения-
Returns a
DataTransfer
object containing information about richtext or plaintext data being added to or removed from editable content. InputEvent.inputType
(en-US)Только для чтения-
Returns the type of change for editable content such as, for example, inserting, deleting, or formatting text. See the property page for a complete list of input types.
InputEvent.isComposing
(en-US)Только для чтения-
Returns a
Boolean
value indicating if the event is fired aftercompositionstart (en-US)
and beforecompositionend (en-US)
.
Methods
This interface inherits methods from its parents, UIEvent
(en-US) and Event
.
InputEvent.getTargetRanges()
(en-US)-
Returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled.
Specifications
Specification | Status | Comment |
---|---|---|
Input Events Level 2 Определение 'InputEvent' в этой спецификации. |
Рабочий черновик | Initial definition. |
Browser compatibility
BCD tables only load in the browser