Arrow keys should cycle focus between widgets in <titledbox> on win32

Status

()

Core
XUL
P3
normal
ASSIGNED
17 years ago
16 years ago

People

(Reporter: Blake Ross, Assigned: Ben Goodger (use ben at mozilla dot org for email))

Tracking

Trunk
Future
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
Arrow key behavior for widgets in <titledbox>'es should match Windows
behavior.  The keys should cycle focus between widgets in a top to bottom,
left to right order (unless a tab order is specified, presumably).  In a
textfield, of course, the arrow keys should serve only to move the caret left
and right.  Note that focus should only be cycled between the widgets in the
<titledbox> that the widget (which had the focus when the arrow key was
pressed) resides in.  If there's no <titledbox>, focus should cycle between
all widgets in the same (top to bottom, left to right) order.
(Reporter)

Comment 1

17 years ago
argh...this was meant to go in XPT, not XPT: Trees.  reassigning.

(XPT may not be the best component for this.  Keyboard Nav seems like it'd be 
better, but I can't think of anyone in that group who would implement this sort 
of thing...?)
Assignee: hyatt → trudelle
Component: XP Toolkit/Widgets: Trees → XP Toolkit/Widgets

Comment 2

17 years ago
Presumably would be done in the XBL of the <titledbox>.
Assignee: trudelle → ben
(Reporter)

Comment 3

17 years ago
One important distinction I forgot to mention:

Radiobuttons should get checked when they get focus (when cycling), whereas 
checkboxes should not (they should only get focus).

Comment 4

17 years ago
I disagree with the above comment, they shouldn't get checked if a user is just
tabbing through them to get to something else.
(Reporter)

Comment 5

17 years ago
Well, that's standard Windows behavior.  Also, you're not tabbing through 
(which should just set focus), you're navigating with the arrow keys.  Also, 
that's how navigation currently works for radiobuttons in a radiogroup.

Comment 6

17 years ago
Eh, sorry, I was thinking tabbing, not arrow keys.

Comment 7

17 years ago
I noticed that arrow keys dont work in message boxes. For example 
http://javascript.internet.com/messages/name-alert.html
 after pressing the Hello, Click Here button, I cant use the arrow keys in the 
message box.

Comment 8

17 years ago
That's a different issue, but left-right arrows work in a javascript prompt()
dialog mac/linux/win32. [up-down have per platform behaviours, but that may
be intentional; I didn't look at the bindings because I'm lazy].
Status: NEW → ASSIGNED
Target Milestone: --- → Future
You need to log in before you can comment on or make changes to this bug.