--- title: KeyboardEvent.isComposing slug: Web/API/KeyboardEvent/isComposing tags: - API - DOM - KeyboardEvent - Property - Read-only - Reference translation_of: Web/API/KeyboardEvent/isComposing ---
{{APIRef("DOM Events")}}
KeyboardEvent.isComposing
は読み取り専用プロパティで、 {{jsxref("Boolean")}} 値でイベントが変換セッションの途中、すなわち {{domxref("Element/compositionstart_event", "compositionstart")}} の後かつ {{domxref("Element/compositionend_event", "compositionend")}} の前に発行されたことを示します。
var bool = event.isComposing;
var kbdEvent = new KeyboardEvent("syntheticKey", false); console.log(kbdEvent.isComposing); // false を返す
仕様書 | 状態 | 備考 |
---|---|---|
{{SpecName('UI Events', '#dom-keyboardevent-iscomposing', 'KeyboardEvent.prototype.isComposing')}} | {{Spec2('UI Events')}} | |
{{SpecName('DOM3 Events','#widl-KeyboardEvent-isComposing','KeyboardEvent.prototype.isComposing')}} | {{Spec2('DOM3 Events')}} | 初回定義 |
{{Compat("api.KeyboardEvent.isComposing")}}