From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/inputevent/index.html | 73 ++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 files/ru/web/api/inputevent/index.html (limited to 'files/ru/web/api/inputevent/index.html') diff --git a/files/ru/web/api/inputevent/index.html b/files/ru/web/api/inputevent/index.html new file mode 100644 index 0000000000..8dd6cc087e --- /dev/null +++ b/files/ru/web/api/inputevent/index.html @@ -0,0 +1,73 @@ +--- +title: InputEvent +slug: Web/API/InputEvent +translation_of: Web/API/InputEvent +--- +
{{APIRef("DOM Events")}} {{SeeCompatTable}}
+ +

The InputEvent interface represents an event notifying of editable content change.

+ +

{{InheritanceDiagram}}

+ +

Конструктор

+ +
+
{{domxref("InputEvent.InputEvent", "InputEvent()")}}
+
Создает InputEvent объект.
+
+ +

Свойства

+ +

This interface inherits properties from its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.

+ +
+
{{domxref("InputEvent.data")}}{{readOnlyInline}}
+
Returns a {{domxref("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).
+
{{domxref("InputEvent.dataTransfer")}}{{readonlyinline}}
+
Returns a {{domxref("DataTransfer")}} object containing information about richtext or plaintext data being added to or removed from editable content.
+
{{domxref("InputEvent.inputType")}}{{readonlyinline}}
+
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.
+
{{domxref("InputEvent.isComposing")}}{{readOnlyInline}}
+
Returns a {{jsxref("Boolean")}} value indicating if the event is fired after {{event("compositionstart")}} and before {{event("compositionend")}}.
+
+ +

Methods

+ +

This interface inherits methods from its parents, {{domxref("UIEvent")}} and {{domxref("Event")}}.

+ +
+
{{domxref('InputEvent.getTargetRanges()')}}
+
Returns an array of static ranges that will be affected by a change to the DOM if the input event is not canceled.
+
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('InputEvents2','#interface-InputEvent','InputEvent')}}{{Spec2('InputEvents2')}}Initial definition.
+ +

Browser compatibility

+ + + +

{{Compat("api.InputEvent")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf