W3cubDocs

/Web APIs

InputEvent: isComposing property

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
isComposing 60 79 31 No 47 16.4 60 60 31 44 16.4 8.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing