зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
4b555f64ef
Коммит
61025edecc
|
@ -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");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче