Closed Bug 38072 Opened 26 years ago Closed 26 years ago

key repeat doesn't work on list controls

Categories

(Core :: Layout: Form Controls, defect, P3)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: Brade, Assigned: rods)

Details

Attachments

(1 file)

I can't press and hold the down arrow key and change the selection in a list box. For example, if I load http://bugzilla.mozilla.org/query.cgi and scroll to the bottom where it has a listbox labeled "Program:", pressing and holding the down arrow key only changes the selection once. I expect it to continue to change the selection until I release the key. The problem for this bug is that nsListControlFrame handles these keys on key * down* events rather than key *press* events. Keypress events are generated repeatedly until the key is released so moving the keydown handling code to a keypress handling method should fix this problem. This may also fix the problem of the browser scrolling down in addition to the form element (since the browser is listening for keypress). If it doesn't you may need to call PreventBubble() or a similar method. Hopefully this is an easy bug for you to knock off! :-)
I have a patch for this. It's also a cleaner fix for the problem of the page scrolling when you arrow up and down in list boxes.
Attached patch Proposed fix — — Splinter Review
bryner's fix - thanks, press event no longer bubbles the key processing is now done in the press event instead of the down event
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Updating QA contact.
QA Contact: ckritzer → bsharma
verifried build 2001081308 os:mac8.6
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: