Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

compositionend

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

The compositionend event is fired when the composition of a passage of text has been completed or cancelled (fires with special characters that require a sequence of keys and other inputs such as speech recognition or word suggestion on mobile).

Bubbles Yes
Cancelable Yes
Target objects Element
Interface TouchEvent

Properties

Property Type Description
target Read only EventTarget Focused element processing the composition.
type Read only DOMString The type of event.
bubbles Read only boolean Does the event normally bubble?
cancelable Read only boolean Is it possible to cancel the event?
view Read only WindowProxy Document.defaultView (window of the document)
detail Read only long (float) 0.
data DOMString (string) The original string being edited, otherwise the empty string. Read only.
locale DOMString (string) The language code for the composition event, if available; otherwise, the empty string. Read only.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 9.0 (9.0)[1] (Yes) Not supported ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 9.0 (9.0)[1] ? ? ?

[1] The event was fired in versions of Gecko before 9.0, but didn't have the DOM Level 3 attributes and methods. Gecko doesn't support the locale attribute for trusted events yet. However, this value can be set via initCompositionEvent() when creating untrusted events.

文档标签和贡献者

标签: 
 此页面的贡献者: fscholz, Sebastianz, teoli, Sheppy, ethertank, louisremi
 最后编辑者: fscholz,