mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
bc336d098b
commit
b4f37cbfb7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user