зеркало из https://github.com/mozilla/gecko-dev.git
b98777fe41
TextEditor modifies composition string or selected string when first eCompositionChange event is received. However, TextComposition dispatches eCompositionChange event ("text" event of DOM) only when composition string becomes non-empty if current composition string is empty. So, when IME dispatches only eCompositionStart and eCompositionCommit events for removing selected text, TextEditor does nothing. This hacky behavior is used by MS Pinyin on Windows 10 at least. For supporting this behavior, we need to make TextComposition dispatch eCompositionChange event when eCompositionChange(AsIs) event is fired even before dispatching eCompositionChange event. Although from point of view of web apps, the hacky composition should be merged into the previous composition if it's possible but it's out of scope of this bug. MozReview-Commit-ID: 7QfeBJamGTU --HG-- extra : rebase_source : 8de1353021f2961ae9f8bdf17ddded1058175339 |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsEditorCID.h | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIEditorUtils.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |