-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select-only combobox Enter interaction diverges from native select #2998
Comments
I realise this might be a question of how do you submit a form from a div. An implementation with |
Indeed, this is not the only interaction that differs from native select. Is there a reason for this? |
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Topic: Select-only combobox enter key behavior<jugglinmike> github: https://github.com//issues/2998 <jugglinmike> Matt_King: this is another inconsistency within the APG and also an inconsistency with the native "select" <jugglinmike> Matt_King: I don't know why we have the "enter" key expanding. Maybe it's because that's what menu buttons do <jugglinmike> Matt_King: Do people think we should remove the "Enter to open" on the select-only combobox example? <jugglinmike> Bryan_Garaventa: I've used that in the past <jugglinmike> jongund: Enter has not been a past default action <jugglinmike> Matt_King: Because our combobox is collapsed by default and because it's select-only, it has a lot of similarities with menu button <jugglinmike> Matt_King: I have questions about the visual design of the select-only combobox <jugglinmike> Matt_King: Does it look like a button? And can you click on a down-arrow icon to expand it? Or does it even have a down-arrow icon? <jugglinmike> arigilmore: It has an arrow, but you can click anywhere on the box to open it <jugglinmike> arigilmore: It's styled more like a button <jugglinmike> Matt_King: So it looks more like a menu button than an input field <jugglinmike> Matt_King: If you can click to expand it, then I'm thinking that pressing "enter" to expand it is analogous <jugglinmike> Bryan_Garaventa: I would agree with that <jugglinmike> Mark_McCarthy: Me too. As a keyboard user, it seems like it can't hurt <jugglinmike> Matt_King: Okay, we'll stick with the "enter" key behavior and treat this as an editorial problem <jugglinmike> Matt_King: We'll make a change to the text of the "keyboard" section of the combobox pattern |
Per discussion in today's meeting, the "Enter" key will be added as an option for expanding select-only comboboxes to the combobox pattern. |
Hey, sorry to reopen this issue, just trying to understand. The select-only combobox does look like a menu button but it is used in a different context. This is basically an input type where, not only you can expand the dropdown list but, contrary to the menu, you need to keep track of the selected entry and handle it like you would a direct user input. It kinda feels weird not to expect the same features (in this case the whole "submit the form when pressing Enter"). Anyway, thanks for your feedback on this issue |
The Select-only combobox example states that pressing Enter on a closed combobox should "Opens the listbox without moving focus or changing selection."
The combobox pattern page does not state any specific interaction on a closed combobox when pressing Enter.
What is bothering me is that the native HTML select does nothing when the user presses Enter when the select is not associated to a form (as demonstrated in this CodePen) and submits the form when associated to one as you'd expect from any kind of input.
Is there a reason to expect Enter to open the listbox ?
Thanks !
The text was updated successfully, but these errors were encountered: