Bug 227646 Tabbing to move focus doesn't work at end of top chrome doc r/sr=bryner a=chofmann

git-svn-id: svn://10.0.0.236/trunk@154243 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk 2004-03-25 09:10:53 +00:00
parent ee84b67662
commit 9c83cd5e13

View File

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