After focusing an element with a negative tabindex, tab relative to it's position in doc

RESOLVED FIXED

Status

()

Core
Keyboard: Navigation
RESOLVED FIXED
14 years ago
12 years ago

People

(Reporter: Aaron Leventhal, Assigned: Aaron Leventhal)

Tracking

(Blocks: 1 bug, {access})

Trunk
access
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

14 years ago
Steps:
1. Load http://www.moonset.net/aaronwork/tests/dhtml/checkbox-with-ns.html
2. Click on button "Click here to try and focus the untabbable" or button "Focus
the span in brackets"
3. Press Tab or Shift+Tab

What happens:
Focus jumps

Expected:
Tabbing should behave naturally in this situation as it does in IE, and move
relative to the current position in the doc.
(Assignee)

Comment 1

14 years ago
Created attachment 154988 [details] [diff] [review]
1) Ignore tabindex when it's negative in GetNextTabbableContent() 2) Get rid of unnecessary TabIndexFrom() code
(Assignee)

Updated

14 years ago
Attachment #154988 - Flags: review?(bryner)
Attachment #154988 - Flags: review?(bryner) → review+
(Assignee)

Updated

14 years ago
Attachment #154988 - Flags: superreview?(jst)
Comment on attachment 154988 [details] [diff] [review]
1) Ignore tabindex when it's negative in GetNextTabbableContent() 2) Get rid of unnecessary TabIndexFrom() code

sr=jst
Attachment #154988 - Flags: superreview?(jst) → superreview+
(Assignee)

Comment 3

14 years ago
Checking in nsEventStateManager.cpp;
/cvsroot/mozilla/content/events/src/nsEventStateManager.cpp,v  <-- 
nsEventStateManager.cpp
new revision: 1.517; previous revision: 1.516
done
Checking in nsEventStateManager.h;
/cvsroot/mozilla/content/events/src/nsEventStateManager.h,v  <-- 
nsEventStateManager.h
new revision: 1.116; previous revision: 1.115
done
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.