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
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.
Update compatibility data on GitHub
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
See also
compositionstart
andcompositionend
KeyboardEvent
KeyboardEvent.isComposing by Mozilla Contributors is licensed under CC-BY-SA 2.5.