InputEvent.isComposing

The InputEvent.isComposing read-only property returns a Boolean value indicating if the event is fired after compositionstart (en-US) and before compositionend (en-US).

这是一个只读属性,返回 boolean 类型。表示正处于输入事件的开始与结束之间,表示正在输入状态。

Syntax

var bool = event.isComposing;

Example

var inputEvent = new InputEvent("syntheticInput", false);
console.log(inputEvent.isComposing); // return false

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
InputEvent.isComposing
Obsolete Initial definition.

Browser compatibility

BCD tables only load in the browser

See also