InputEvent.isComposing
The InputEvent.isComposing
read-only property returns a Boolean
value indicating if the event is fired after compositionstart
and before compositionend
.
这是一个只读属性,返回 boolean 类型。表示正处于输入事件的开始与结束之间,表示正在输入状态。
Syntax
var bool = event.isComposing;
Example
js
var inputEvent = new InputEvent("syntheticInput", false);
console.log(inputEvent.isComposing); // return false
Specifications
Specification |
---|
UI Events # dom-inputevent-iscomposing |
Browser compatibility
BCD tables only load in the browser