From 9c83cd5e130d29025353eaea1f16f71ceebaee3f Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Thu, 25 Mar 2004 09:10:53 +0000 Subject: [PATCH] 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 --- mozilla/content/events/src/nsEventStateManager.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mozilla/content/events/src/nsEventStateManager.cpp b/mozilla/content/events/src/nsEventStateManager.cpp index 516e57e235f..4b56e392806 100644 --- a/mozilla/content/events/src/nsEventStateManager.cpp +++ b/mozilla/content/events/src/nsEventStateManager.cpp @@ -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)