File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -733,6 +733,30 @@ <h4><dfn class="export">Handle input for EditContext</dfn></h4>
733
733
</ ol >
734
734
</ div > <!-- algorithm -->
735
735
736
+ < h4 > < dfn > EditContext-handled inputType</ dfn > </ h4 >
737
+ < div class ="algorithm ">
738
+ An < a href ="https://www.w3.org/TR/uievents/#dom-inputevent-inputtype "> inputType</ a > is an
739
+ [=EditContext-handled inputType=] if it is one of the following:
740
+ < ul >
741
+ < li > < code > insertText</ code > </ li >
742
+ < li > < code > insertTranspose</ code > </ li >
743
+ < li > < code > deleteWordBackward</ code > </ li >
744
+ < li > < code > deleteWordForward</ code > </ li >
745
+ < li > < code > deleteContent</ code > </ li >
746
+ < li > < code > deleteContentBackward</ code > </ li >
747
+ < li > < code > deleteContentForward</ code > </ li >
748
+ </ ul >
749
+ < div class ="note ">
750
+ The < a href ="https://www.w3.org/TR/uievents/#dom-inputevent-inputtype "> inputType</ a > s handled by {{EditContext}}
751
+ are those which operate only on raw text. Other < a href ="https://www.w3.org/TR/uievents/#dom-inputevent-inputtype "> inputType</ a > s
752
+ that depend on formats, clipboard/dragdrop, undo, or browser UI like spellcheck cannot be handled by
753
+ {{EditContext}} since {{EditContext}}'s state does not include these concepts. If an author wants their
754
+ application to handle those < a href ="https://www.w3.org/TR/uievents/#dom-inputevent-inputtype "> inputType</ a > s,
755
+ they need to process them manually in a < a href ="https://www.w3.org/TR/uievents/#event-type-beforeinput "> beforeinput</ a >
756
+ event handler.
757
+ </ div >
758
+ </ div >
759
+
736
760
< h4 > < dfn > Update the EditContext</ dfn > </ h4 >
737
761
< div class ="algorithm ">
738
762
< dl >
You can’t perform that action at this time.
0 commit comments