Bug 403965, r+sr=peterv, a=schrep

This commit is contained in:
Olli.Pettay@helsinki.fi 2007-11-19 23:17:43 -08:00
parent 604eee8752
commit fd08e5f414

View File

@ -1112,6 +1112,7 @@ nsTextEditorFocusListener::Focus(nsIDOMEvent* aEvent)
// turn on selection and caret
if (mEditor)
{
nsCOMPtr<nsIEditorIMESupport> imeEditor = do_QueryInterface(mEditor);
PRUint32 flags;
mEditor->GetFlags(&flags);
if (! (flags & nsIPlaintextEditor::eEditorDisabledMask))
@ -1164,7 +1165,6 @@ nsTextEditorFocusListener::Focus(nsIDOMEvent* aEvent)
}
}
nsCOMPtr<nsIEditorIMESupport> imeEditor = do_QueryInterface(mEditor);
if (imeEditor)
imeEditor->NotifyIMEOnFocus();
}