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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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