[Edge]。読取専用。→、
InputEvent が compositionstart の後、compositionend の前にイベントが発生したかどうかを示すブール値を返します。「composition」=構成。
真偽値。
HTML:
<SPAN id=IdTest1 contenteditable>[SPAN要素。編集可能]</SPAN><BR> <INPUT id=IdTest2 value="INPUT"><BR> <SPAN id=IdLog></SPAN>
JavaScript:
function Job(eve){ //inputイベントの処理:
D=eve; //=[object]:[object InputEvent]。INPUT要素でFEPで「あ」と入力した。
詳細
//isTrusted=[boolean]:true
//data=[string]:あ
//isComposing=[boolean]:false
//inputType=[string]:insertText
//dataTransfer=[object]:null
//getTargetRanges=[function]:function getTargetRanges() { [native code] }
//view=[object]:null
//detail=[number]:0
//sourceCapabilities=[object]:null
//which=[number]:0
//initUIEvent=[function]:function initUIEvent() { [native code] }
//type=[string]:input
//target=[object]:[object HTMLInputElement]
//currentTarget=[object]:null
//eventPhase=[number]:0
//bubbles=[boolean]:true
//cancelable=[boolean]:false
//defaultPrevented=[boolean]:false
//composed=[boolean]:true
//…
IdLog.innerHTML=IdLog.innerHTML+eve.isComposing+" "; //表示。
}
IdTest1.oninput=Job; //イベント割り当て。
IdTest2.oninput=Job; //イベント割り当て。
FEP 利用にて、確定されていない入力は true、確定されている入力は false ?。