Closed Bug 281242 Opened 20 years ago Closed 17 years ago

Dropdown Lists Lose Ability to Scroll on Keypress

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla, Unassigned)

Details

Attachments

(1 file)

20050203 trunk

If you have a dropdown list (e.g., a list of US states) with focus, pressing the
letter "C" one time should bring up "California", twice "Colorado" and so forth.
Likewise, pressing "A" should bring up Alaska. Somewhere Firefox gets confused
about all this and stops working.

Load up the test case. Place focus in the list and press "C". California shows
up ... perfect. Now press "A" and you get Alaska ... perfect. Now press "C"
again. If it works, alternate letters. Firefox is going to lose track very fast.
When it does, keypresses will stop doing anything. To restore proper behavior
just blur and refocus the dropdown.
This behaviour is intentional: if the interval between 'C' and 'A' is less than
1 second, the browser will try to match 'CA' and finds California, so the
selection does not move. Try to press 'I', then 'L': Illinois gets selected, not
Louisiana.
(In reply to comment #2)
> This behaviour is intentional: if the interval between 'C' and 'A' is less than
> 1 second, the browser will try to match 'CA' and finds California, so the
> selection does not move. Try to press 'I', then 'L': Illinois gets selected, not
> Louisiana.

No the reporter is correct, try this in the testcase:

Press a combination of letters e.g. 'A','C','A','D' with pauses and you'll see
that Firefox gets completely confused where it should jump to. If it works for a
while just keep going, and you'll see that Firefox will do nothing when you type
the next letter.

Tested this w/ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0
comment #2 points something out that I had not known ... that if you wait for a
second or two after the list stops working, it will reset itself. I suppose the
root problem here might be that 1 second is too long.
WFM, 2005-02-04-06 trunk Linux.
WFM 
- Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060629 Minefield/3.0a1
- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 SeaMonkey/1.0.2
Assignee: bugs → nobody
closing
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: