Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. CompositionEvent

CompositionEvent

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

The DOMCompositionEvent represents events that occur due to the user indirectly entering text.

Event UIEvent CompositionEvent

Constructor

CompositionEvent()

Creates a newCompositionEvent object instance.

Instance properties

This interface also inherits properties of its parent,UIEvent, and its ancestor —Event.

CompositionEvent.dataRead only

Returns the characters generated by the input method that raised the event; its varies depending on the type of event that generated theCompositionEvent object.

CompositionEvent.localeRead onlyDeprecatedNon-standard

Returns the locale of the current input method (for example, the keyboard layout locale if the composition is associated with anInput method editor).

Instance methods

This interface also inherits methods of its parent,UIEvent, and its ancestor —Event.

CompositionEvent.initCompositionEvent()Deprecated

Initializes the attributes of aCompositionEvent object.

Specifications

Specification
UI Events
# interface-compositionevent

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp