зеркало из https://github.com/mozilla/pjs.git
Bug 227646 Tabbing to move focus doesn't work at end of top chrome doc r/sr=bryner a=chofmann
This commit is contained in:
Родитель
4408a64d26
Коммит
9f9e1e57f2
|
@ -3046,14 +3046,8 @@ nsEventStateManager::ShiftFocusInternal(PRBool aForward, nsIContent* aStart)
|
|||
}
|
||||
|
||||
if (!mCurrentFocus) // Get tabindex ready
|
||||
if (aForward) {
|
||||
if (docHasFocus && selectionFrame)
|
||||
mCurrentTabIndex = 0;
|
||||
else {
|
||||
SetFocusedContent(rootContent);
|
||||
mCurrentTabIndex = 1;
|
||||
}
|
||||
}
|
||||
if (aForward)
|
||||
mCurrentTabIndex = docHasFocus && selectionFrame ? 0 : 1;
|
||||
else if (!docHasFocus)
|
||||
mCurrentTabIndex = 0;
|
||||
else if (selectionFrame)
|
||||
|
|
Загрузка…
Ссылка в новой задаче