compositionstart

  • Revision slug: Mozilla_event_reference/compositionstart
  • Revision title: compositionstart
  • Revision id: 290348
  • Created:
  • Creator: louisremi
  • Is current revision? No
  • Comment

Revision Content

The compositionstart event is fired when the composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition).

General info

Specification
DOM L3
Interface
TouchEvent
Synchronicity
synchronous
Bubbles
Yes
Cancelable
Yes
Target
Document, Element
Default Action
Start a new composition session when a text composition system is enabled.

Properties

{{OpenEventProperties("Focused element processing the composition.")}}{{UIEventProperties()}}{{CompositionEventProperties("the original string being edited, otherwise the empty string.")}}{{CloseEventProperties()}}

Revision Source

<p>The <code>compositionstart</code> event is fired when the composition of a passage of text is prepared (similar to <code>keydown</code> for a keyboard input, but works with other inputs such as speech recognition).</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="http://www.w3.org/TR/DOM-Level-3-Events/#event-type-compositionstart">DOM L3</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    TouchEvent</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Synchronicity</dt>
  <dd style="margin: 0 0 0 120px;">
    synchronous</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    Document, Element</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    Start a new composition session when a text composition system is enabled.</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties("Focused element processing the composition.")}}{{UIEventProperties()}}{{CompositionEventProperties("the original string being edited, otherwise the <a class="def" href="http://www.w3.org/TR/DOM-Level-3-Events/#glossary-empty-string">empty string</a>.")}}{{CloseEventProperties()}}</p>
Revert to this revision