зеркало из https://github.com/mozilla/gecko-dev.git
63f8b9a61d
Input Events Level 2 declares "deleteByComposition" for empty composition removes selected content and "deleteCompositionText" for canceling composition. https://w3c.github.io/input-events/#interface-InputEvent-Attributes Therefore, TextEditor::OnCompositionChange() should use a new EditAction for the former only when new composition string is empty, there is no composition string and there is non-collapsed Selection. And also TextEditor::OnCompositionEnd() should use another new EditAction for the latter when composition is canceled with empty string (we don't restore selected content which is removed by the composition). Additionally, due to bug 1305387, we don't dispatch "input" event when we handle TextEditor::OnCompositionChange(). Instead, we dispatch it when we handle TextEditor::OnCompositionEnd(). Therefore, we need to use EditAction::eCommitComposition in TextEditor::OnCompositionEnd(). Differential Revision: https://phabricator.services.mozilla.com/D10520 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |