InputEvent: isComposing property

Baseline 2023
Newly available

Since ⁨March 2023⁩, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

The InputEvent.isComposing read-only property returns a boolean value indicating if the event is fired after compositionstart and before compositionend.

Value

A boolean.

Examples

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

Specifications

Specification
UI Events
# dom-inputevent-iscomposing

Browser compatibility

See also