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
.
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
.
A boolean.
js
const kbdEvent = new KeyboardEvent("syntheticKey", false); console.log(kbdEvent.isComposing); // return false
Specification |
---|
UI Events # dom-keyboardevent-iscomposing |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
isComposing |
56 | 79 | 31 | No | 43 | 10.1 | 56 | 56 | 31 | 43 | 10.3 | 6.0 |
© 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/KeyboardEvent/isComposing