Skip to content

Commit fe8c052

Browse files
committed
moved composition related handler from HTMLElement to Element
1 parent 243aec1 commit fe8c052

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

dom/src/main/scala/org/scalajs/dom/Element.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,16 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo
301301
* specified CSS selector.
302302
*/
303303
def closest(selector: String): Element = js.native
304+
305+
/** Fired when a text composition system such as an input method editor starts a new composition session. */
306+
var oncompositionstart: js.Function1[CompositionEvent, _] = js.native
307+
308+
/** Fired when a new character is received in the context of a text composition session. */
309+
var oncompositionupdate: js.Function1[CompositionEvent, _] = js.native
310+
311+
/** Fired when a text composition system such as an input method editor completes or cancels the current composition
312+
* session.
313+
*/
314+
var oncompositionend: js.Function1[CompositionEvent, _] = js.native
315+
304316
}

dom/src/main/scala/org/scalajs/dom/HTMLElement.scala

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,4 @@ abstract class HTMLElement extends Element {
241241

242242
/** Fired after pointer capture is released for a pointer. */
243243
var lostpointercapture: js.Function1[PointerEvent, _] = js.native
244-
245-
/** Fired when a text composition system such as an input method editor starts a new composition session. */
246-
var oncompositionstart: js.Function1[CompositionEvent, _] = js.native
247-
248-
/** Fired when a new character is received in the context of a text composition session. */
249-
var oncompositionupdate: js.Function1[CompositionEvent, _] = js.native
250-
251-
/** Fired when a text composition system such as an input method editor completes or cancels the current composition
252-
* session.
253-
*/
254-
var oncompositionend: js.Function1[CompositionEvent, _] = js.native
255244
}

0 commit comments

Comments
 (0)