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:
neil%parkwaycc.co.uk 2004-03-25 09:10:53 +00:00
Родитель 4408a64d26
Коммит 9f9e1e57f2
1 изменённых файлов: 2 добавлений и 8 удалений

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

@ -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)