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

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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes9 Yes No ?
data Yes Yes9 Yes No ?
initCompositionEvent Yes Yes9 Yes No ?
locale Yes Yes9 Yes No ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? Yes9 ? ? ?
data ? ? Yes9 ? ? ?
initCompositionEvent ? ? Yes9 ? ? ?
locale ? ? Yes9 ? ? ?

See also

文档标签和贡献者

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