зеркало из https://github.com/mozilla/pjs.git
fix bug 19358 r=jfrancis add IME force commit for Undo,SelectAll and Paste
This commit is contained in:
Родитель
50b47ad6e5
Коммит
2fdf046684
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче