这篇翻译不完整。请帮忙从英语翻译这篇文章

CompositionEvent 用于处理用户间接输入文字的事件。

构造器

CompositionEvent()
用于构造一个新的合成事件对象。

属性

接口集成了父类, UIEvent, 以及祖先 — Event.

CompositionEvent.data 只读
Returns the characters generated by the input method that raised the event; its varies depending on the type of event that generated the CompositionEvent object.
CompositionEvent.locale 只读
Returns the locale of current input method (for example, the keyboard layout locale if the composition is associated with IME).

Methods

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

CompositionEvent.initCompositionEvent()
Initializes the attributes of a CompositionEvent object.

Specifications

Specification Status Comment
UI Events
CompositionEvent
Working Draft  
Document Object Model (DOM) Level 3 Events Specification
CompositionEvent
Obsolete  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support YesEdge Full support YesFirefox Full support 9IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 9Opera Android ? Safari iOS ? Samsung Internet Android ?
CompositionEvent() constructorChrome Full support YesEdge ? Firefox Full support 53IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support 53Opera Android ? Safari iOS ? Samsung Internet Android ?
dataChrome Full support YesEdge Full support YesFirefox Full support 9IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 9Opera Android ? Safari iOS ? Samsung Internet Android ?
initCompositionEvent
DeprecatedNon-standard
Chrome Full support YesEdge Full support YesFirefox Full support 9IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 9Opera Android ? Safari iOS ? Samsung Internet Android ?
locale
DeprecatedNon-standard
Chrome Full support YesEdge Full support YesFirefox Full support 9IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 9Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

See also

文档标签和贡献者

此页面的贡献者: SphinxKnight, Mr-innocence
最后编辑者: SphinxKnight,