зеркало из https://github.com/mozilla/gecko-dev.git
Bug 133304. Caret disappearing when tabbing to mail compose edit window. r=bryner, sr=hewitt, a=asa.
This commit is contained in:
Родитель
a8f99cc832
Коммит
3026fad7a6
|
@ -4565,7 +4565,7 @@ nsEventStateManager::ResetBrowseWithCaret(PRBool *aBrowseWithCaret)
|
|||
// This is called when browse with caret changes on the fly
|
||||
// or when a document gets focused
|
||||
|
||||
mBrowseWithCaret = *aBrowseWithCaret = PR_FALSE;
|
||||
*aBrowseWithCaret = PR_FALSE;
|
||||
|
||||
nsCOMPtr<nsISupports> pcContainer;
|
||||
mPresContext->GetContainer(getter_AddRefs(pcContainer));
|
||||
|
@ -4580,6 +4580,10 @@ nsEventStateManager::ResetBrowseWithCaret(PRBool *aBrowseWithCaret)
|
|||
return NS_OK; // Never browse with caret in chrome
|
||||
|
||||
mPrefService->GetBoolPref("accessibility.browsewithcaret", aBrowseWithCaret);
|
||||
|
||||
if (mBrowseWithCaret == *aBrowseWithCaret)
|
||||
return NS_OK; // already set this way, don't change caret at all
|
||||
|
||||
mBrowseWithCaret = *aBrowseWithCaret;
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
|
|
Загрузка…
Ссылка в новой задаче