Skip to content

Commit

Permalink
moved composition related handler from HTMLElement to Element
Browse files Browse the repository at this point in the history
  • Loading branch information
nineclue committed Mar 20, 2024
1 parent 243aec1 commit fe8c052
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
12 changes: 12 additions & 0 deletions dom/src/main/scala/org/scalajs/dom/Element.scala
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,16 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo
* specified CSS selector.
*/
def closest(selector: String): Element = js.native

/** Fired when a text composition system such as an input method editor starts a new composition session. */
var oncompositionstart: js.Function1[CompositionEvent, _] = js.native

/** Fired when a new character is received in the context of a text composition session. */
var oncompositionupdate: js.Function1[CompositionEvent, _] = js.native

/** Fired when a text composition system such as an input method editor completes or cancels the current composition
* session.
*/
var oncompositionend: js.Function1[CompositionEvent, _] = js.native

}
11 changes: 0 additions & 11 deletions dom/src/main/scala/org/scalajs/dom/HTMLElement.scala
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,4 @@ abstract class HTMLElement extends Element {

/** Fired after pointer capture is released for a pointer. */
var lostpointercapture: js.Function1[PointerEvent, _] = js.native

/** Fired when a text composition system such as an input method editor starts a new composition session. */
var oncompositionstart: js.Function1[CompositionEvent, _] = js.native

/** Fired when a new character is received in the context of a text composition session. */
var oncompositionupdate: js.Function1[CompositionEvent, _] = js.native

/** Fired when a text composition system such as an input method editor completes or cancels the current composition
* session.
*/
var oncompositionend: js.Function1[CompositionEvent, _] = js.native
}

0 comments on commit fe8c052

Please sign in to comment.