Web/API/KeyboardEvent/isComposing

From Get docs

The KeyboardEvent.isComposing read-only property returns a Boolean value indicating if the event is fired within a composition session, i.e. after compositionstart and before compositionend.

Syntax

var bool = event.isComposing;

Example

var kbdEvent = new KeyboardEvent("syntheticKey", false);
console.log(kbdEvent.isComposing); // return false

Specifications

Specification Status Comment
UI EventsThe definition of 'KeyboardEvent.prototype.isComposing' in that specification. Working Draft
Document Object Model (DOM) Level 3 Events SpecificationThe definition of 'KeyboardEvent.prototype.isComposing' in that specification. Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
isComposing Chrome

Full support 56

Edge

Full support ≤79

Firefox

Full support 31

IE

No support No

Opera

Full support 43

Safari

Full support 10.1

WebView Android

Full support 56

Chrome Android

Full support 56

Firefox Android

Full support 31

Opera Android

Full support 43

Safari iOS

Full support 10.3

Samsung Internet Android

Full support 6.0

Legend

Full support  
Full support
No support  
No support


See also