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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: Brade, Assigned: rods)
Details
Attachments
(1 file)
|
1019 bytes,
patch
|
Details | Diff | Splinter Review |
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! :-)
Comment 1•26 years ago
|
||
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.
Comment 2•26 years ago
|
||
| Assignee | ||
Comment 3•26 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•