KeyboardEvent.isComposing
KeyboardEvent.isComposing
只读属性,返回一个 Boolean
值,表示该事件是否在 compositionstart
之后和 compositionend
之前被触发。
语法
var bool = event.isComposing;
示例
var kbdEvent = new KeyboardEvent("syntheticKey", false);
console.log(kbdEvent.isComposing); // return false
标准
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification KeyboardEvent.isComposing |
Obsolete | Initial definition. |
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
特性 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
基本支持 | 56.0 | 31.0 (31.0) | 未实现 | 43 | 未实现 |
特性 | Android Webview | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|
基本支持 | 56.0 | 31.0 (31.0) | 未实现 | 43 | 未实现 | 56.0 |