fix bug 19358 r=jfrancis add IME force commit for Undo,SelectAll and Paste

This commit is contained in:
ftang%netscape.com 1999-12-09 22:37:36 +00:00
parent 4d99b4999b
commit c3b2fbc5fd
2 changed files with 4 additions and 0 deletions

View File

@ -3398,6 +3398,7 @@ nsHTMLEditor::InsertFormattingForNode(nsIDOMNode* aNode)
NS_IMETHODIMP
nsHTMLEditor::Undo(PRUint32 aCount)
{
ForceCompositionEnd();
nsresult result = NS_OK;
BeginUpdateViewBatch();
@ -3476,6 +3477,7 @@ NS_IMETHODIMP nsHTMLEditor::Copy()
NS_IMETHODIMP nsHTMLEditor::Paste()
{
ForceCompositionEnd();
nsAutoString stuffToPaste;
// Get Clipboard Service

View File

@ -3398,6 +3398,7 @@ nsHTMLEditor::InsertFormattingForNode(nsIDOMNode* aNode)
NS_IMETHODIMP
nsHTMLEditor::Undo(PRUint32 aCount)
{
ForceCompositionEnd();
nsresult result = NS_OK;
BeginUpdateViewBatch();
@ -3476,6 +3477,7 @@ NS_IMETHODIMP nsHTMLEditor::Copy()
NS_IMETHODIMP nsHTMLEditor::Paste()
{
ForceCompositionEnd();
nsAutoString stuffToPaste;
// Get Clipboard Service