Open Bug 206606 Opened 21 years ago Updated 2 years ago

Selectbox with lots of options: Quick-Selection by typing first character of an option is not working

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: pda, Unassigned)

References

Details

(Keywords: access)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507

e.g. www.teamone.de/selfhtml Use the Quickbar and choose e.g. CSS. The right
Selectbox will get about 200 options... Try to select one by typing the first
character of an option.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Actual Results:  
No Entry will be selected, blue selection is flickering.

Expected Results:  
Selecting an option with matching character
Patrick, could you explain a little more about this bug? In what situation it 
will be failed by pressing the first letter?

Mozilla prefers the incremental search in selectbox, e.g. if you typed "abc" 
quickly (<1 sec between every typing), mozilla will try to match the item 
begins with "abc" rather than match 3 items "a..." "b..." "c..." in sequence. 

Please see the following bugs for reference:
bug 150590, bug 177965, bug 188199 
When I'm typing just one letter, I do not get a selected option. I need to press
e.g. the letter "p" twice, to get a selection for the word "pizza" at the
pulldown box. If I only press it once, the word "pizza" is shown on the top of
the select box, but the selection at the pulldown box is still missing.
then could you please give a new test case? the one in comment 0 does not work
for me.
Attached file testcase
Your short testcase selectbox is working fine...

Try this one:
http://selfhtml.teamone.de/navigation/quickbar/liste_css.htm

There are a bit more options. I think it depends on the amount of options...
not, the testcase I posted is a good testcase.

you can press 'A', then press 'N' to see it.
   
Status: UNCONFIRMED → NEW
Ever confirmed: true
Jerry, see my comment 1, if the interval between typing 'a' and 'n' is less than
1 sec, we will try to match 'an...', not 'n...'
Patrick, thanks for the test case, now I understand what the problem is.

ccing jkeiser.
By a simple investigation, I found the nsScrollPortView::ScrollTo got called 
twice after a matched item was found - once with the correct offset, another 
with (0, 0). That also can explain why the listbox was shaking.

changing component & owner...
Assignee: aaronl → form
Component: Keyboard: Navigation → Layout: Form Controls
QA Contact: sairuh → ian
Blocks: aix-access
Keywords: access
Assignee: layout.form-controls → nobody
QA Contact: ian → layout.form-controls
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: