Closed
Bug 100186
Opened 24 years ago
Closed 23 years ago
Dropdown/listbox keyboard navigation & issues
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: jhpedemonte, Assigned: john)
Details
(Keywords: access, testcase)
Attachments
(2 files, 5 obsolete files)
|
293 bytes,
text/html
|
Details | |
|
3.06 KB,
patch
|
john
:
review+
attinasi
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
This bug is for several fixes that I implemented a few months ago bug forgot to
open a bug for. It fixes several issues, but since they all apply to combobox
navigation, I decided to put them in one bug. If you want me to split this up,
let me know. Also, this goes beyond just specifying keys to enable drop-down,
as in 57192.
Here are the issues:
1) Alt+Down/F4 to drop down menu as in 62425/57192.
2) Any keyboard navigation (using arrows, page down, etc), should pop down the
dropdown. This is would fix two issues. First, when the drop down is tied to
javascript (such as in
http://www.pc.ibm.com/support?lang=en_US&page=brand&brand=IBM+NetVista&family=IBM+NetVista%7CNetVista+personal+computer&machineType=&model=&doctype=&subtype=All),
any new selection causes the page to reload; having it pop down first stops
this behavior. Secondly, it's good to see what you are selecting.
3) One should be able to select multiple elements in listboxes using
PageDown/PageUp/Home/End.
4) After implementing F4 to toggle dropdown, pressing 's' to select word will
open/close dropdown (since 's' = 'F4' = 0x74)
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Comment 2•24 years ago
|
||
Proposed fix above. Most of the fixes are self-explanatory; however, in
regards to (4) above, I simply split the character code from the key code
variable, since the lower case character codes overlap the values of some of the
DOM_VK_* values.
Comment 3•24 years ago
|
||
This is an accessibility issue as well.
Comment 4•24 years ago
|
||
I recommend we follow IE's behavior. F4 is only used to drop down the list on
the URL bar.
Alt+Down is used for all other popups.
Comment 5•24 years ago
|
||
Item #1 is covered by bug 57192
I believe Item #2 in the bug description is invalid. That's what Alt+Down is for
- to pop open the list. Typing a letter or pressing down arrow should not affect
whether the list is open. We neeed to keep our HTML keyboard support as close to
the IE standard as possible.
Item #3 - multiple selections is another issue, it is possible to use a multi
select listbox with the keyboard now, using Shift+Up and Shift+Down
Item #4 - we don't need to implement F4 for this. See previous bugzilla comment.
Therefore, I believe this bug is INVALID, since all the cases needed are covered
by bug 57192.
Comment 6•24 years ago
|
||
IE is not a standard.
We should do the right thing.
In all other apps except IE including Nav 4.x, F4 pops down all combos.
As far as the typing letter popping down the combobox, the current behavior on
IE and Mozilla and Netscpae is BROKE for accessibility.
A lot of sites key the Javascript off of the change of the combo, and when you
hit a letter, it causes this change.
See the IBM site mentioned.
| Reporter | ||
Comment 7•24 years ago
|
||
I have to agree with Kaply here. The Mozilla project is not about making an IE
clone. F4 seems to be the accepted way to drop down comboboxes, at least on
windows and os/2.
Also, this patch fixes the issue mentioned by Neil in bug 57192: "Function keys
currently have interesting effects in HTML drop-down lists - they map to letters
F1=P ... F9=X"
Comment 8•24 years ago
|
||
ccing jkeiser who is currently gutting nsListControlFrame.cpp
You guys may want to coordinate to avoid conflicts....
Comment 9•24 years ago
|
||
I didn't mean to create a big deal about it -- but in most cases I feel we
should follow IE on keyboard stuff unless there is a good reason not to.
I would go along with F4 to pop open list boxes.
However, I'm not convinced that typing other things should open the drop down
the list box though -- do you know any other windows apps that do that? Or is
that strictly OS/2 behavior?
| Reporter | ||
Comment 10•24 years ago
|
||
It is not the behavior for any application I know of. I just thought it would
help with keyboard navigation give (1) the above javascript problem (given the
current implementation, I just use the arrow keys or type the letter to get to
the desired item; i rarely think of doing alt+down in order to pop down the
listbox and then select) and (2) that when selecting, it would help to see the
contents of the listbox, rather than cycling one by one. It does not introduce
any harmful side-effects; in fact, it speeds things up, since you don't have to
press alt+down every time you tab to a listbox.
Granted, I think this 'feature' is up for discussion. However, I believe that
all the other points in the first post are valid.
| Assignee | ||
Comment 11•24 years ago
|
||
Yes, the code you referenced is going to be completely different (and easier to
work with) when bug 34297 gets its fix in. Could we revisit then?
| Reporter | ||
Comment 13•23 years ago
|
||
This patch implements F4-dropdown support. Most of the other issues were taken
care of by the rewrite or there are bugs already open for them.
Attachment #49669 -
Attachment is obsolete: true
| Reporter | ||
Comment 14•23 years ago
|
||
Attachment #64578 -
Attachment is obsolete: true
| Assignee | ||
Comment 15•23 years ago
|
||
Comment on attachment 64591 [details] [diff] [review]
patch: code -> keycode
Could you move the definition of charcode into the default: case? It's not
used anywhere else and it's not good to have stray vars lying around. Other
than that, it looks good.
Attachment #64591 -
Flags: review+
| Assignee | ||
Comment 16•23 years ago
|
||
Comment on attachment 64591 [details] [diff] [review]
patch: code -> keycode
Could you move the definition of charcode into the default: case? It's not
used anywhere else and it's not good to have stray vars lying around. Other
than that, it looks good.
Attachment #64591 -
Flags: review+
| Assignee | ||
Comment 17•23 years ago
|
||
Javier, give it a couple days before making any new patches if you could--bug
112241 is landing shortly that affects this code.
| Reporter | ||
Comment 18•23 years ago
|
||
How about this patch?
Attachment #64591 -
Attachment is obsolete: true
| Assignee | ||
Comment 19•23 years ago
|
||
Comment on attachment 66806 [details] [diff] [review]
update to trunk
Looks good to me, r=jkeiser. I like the keycode/charcode change, it makes it
less deceptive :)
Please note that bug 112713 is getting close to fulfillment, so you may want to
hold off on major functionality fixes to the select frame for the time being.
I'll still be happy to accept them, but our work on the frame will (thankfully)
ultimately be in vain.
Attachment #66806 -
Flags: review+
| Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.9
Comment 21•23 years ago
|
||
This is just an HTML file with a dropdown.
Simple testcase.
| Assignee | ||
Comment 22•23 years ago
|
||
Javier? I was talking to some of our crotchety UI guys and they tell me this
needs to be Windows-only (the F4 part at least). I still like the patch, can
you resubmit with #ifdef XP_WIN around the F4 case and we'll go forth with sr=
and stuff?
Target Milestone: mozilla0.9.9 → mozilla1.0
| Reporter | ||
Comment 24•23 years ago
|
||
Attachment #72477 -
Attachment is obsolete: true
| Assignee | ||
Comment 25•23 years ago
|
||
Comment on attachment 72479 [details] [diff] [review]
ifdefed F4 (2nd attempt)
r=jkeiser
Attachment #72479 -
Flags: review+
Comment 26•23 years ago
|
||
Comment on attachment 72479 [details] [diff] [review]
ifdefed F4 (2nd attempt)
sr=attinasi
Attachment #72479 -
Flags: superreview+
Comment 27•23 years ago
|
||
Comment on attachment 72479 [details] [diff] [review]
ifdefed F4 (2nd attempt)
a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #72479 -
Flags: approval+
Comment 28•23 years ago
|
||
Fix checked in.
Javier, open an RFE bug for the "pop down as you type" idea.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•