KeyboardEvent.isComposing

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 Events
The definition of 'KeyboardEvent.prototype.isComposing' in that specification.
Working Draft
Document Object Model (DOM) Level 3 Events Specification
The definition of 'KeyboardEvent.prototype.isComposing' in that specification.
Obsolete Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
isComposingChrome Full support 56Edge Full support ≤79Firefox Full support 31IE No support NoOpera Full support 43Safari Full support 10.1WebView Android Full support 56Chrome Android Full support 56Firefox Android Full support 31Opera Android Full support 43Safari iOS Full support 10.3Samsung Internet Android Full support 6.0

Legend

Full support
Full support
No support
No support

See also