Closed Bug 223897 Opened 21 years ago Closed 21 years ago

Cursor navigation for Radio buttons is reversed

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Stefan.Borggraefe, Assigned: neil)

References

Details

(Keywords: polish)

Attachments

(1 file)

Steps to reproduce:

1. Focus a radio button, e.g. the second button in
Edit|Preferences|MailNews|Offline|When going online.
2. Press cursor up.

Result:
The radio button *below* the previously focused radio button is selected.

Expected result:
The radio button *above* should be selected.

All other cursor keys show this reversed bahaviour, too.
Attached patch Proposed patchSplinter Review
Plus a teensy bit of cleanup too.
Attachment #134317 - Flags: review?(timeless)
Depends on: 226549
This was fixed by the checkin for bug 223897.

Neil: Do you want to keep this open for the additional cleanup in your patch?
Once you found the correct bug number you can mark this fixed... the only
changes I have left in my tree are somewhat minor:
* change the code so that when you only have one radiobutton pressing up or down
arrow doesn't fire any events
* change the space key code to check for disabled first (as if the focussed
radio was likely to be disabled :-)
* change the arrow keys not to prevent bubble (they have phase="target")
* make the radio destructor clear the radiogroup cache, so that when you destroy
a document you don't have to remove each radio from the cache, also when you
move a radio you don't remove it from the cache only to clear the cache when you
readd it.
Ooops, this was the wrong bug number in the clipboard.

This was fixed by the checkin for Bug 226549.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment on attachment 134317 [details] [diff] [review]
Proposed patch

Removing obsolete review request.
Attachment #134317 - Flags: review?(timeless)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: