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
parent bc336d098b
commit b4f37cbfb7

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)