Bug 257581 Cursor (caret) doesn't appear in MailNews Compose Window, although you type something

r=daniel, sr=roc, patch=ginn.chen@sun.com
This commit is contained in:
kyle.yuan%sun.com 2004-09-23 02:50:07 +00:00
Родитель 4b555f64ef
Коммит 61025edecc
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -4866,6 +4866,15 @@ nsEventStateManager::ResetBrowseWithCaret()
if (itemType == nsIDocShellTreeItem::typeChrome)
return; // Never browse with caret in chrome
nsCOMPtr<nsIEditorDocShell> editorDocShell(do_QueryInterface(shellItem));
if (editorDocShell) {
PRBool isEditable;
editorDocShell->GetEditable(&isEditable);
if (isEditable) {
return; // Reset caret visibility only if browsing, not editing
}
}
PRPackedBool browseWithCaret =
nsContentUtils::GetBoolPref("accessibility.browsewithcaret");