WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Expected behavior for listbox selection

for

From: Isabel Holdsworth
Date: Dec 10, 2018 2:48AM


Enter has traditionally been used to submit forms, so I'd personally
steer away from it as a selection key.

If the listbox is marked up properly, there's no need to add hidden
screenreader instructions. When the focus lands on an element,
screenreaders typically speak the element's name ("Pizza toppings"),
its type ("listbox"), its current value if one is selected ("Cheese"),
and instructions for interacting with the element ("Press Space to
select an item").

Cheers, Isabel

On 07/12/2018, glen walker < <EMAIL REMOVED> > wrote:
> I'm with Sean. I would expect space to select the item, like space selects
> a checkbox, radio button, and button (although of course a button allows
> enter too), but then I'm a keyboard user and have been for years (decades).
>
> With multiselect listboxes, if the up/down arrow keys change the selection
> (which I understand you're not doing), then you have to use ctrl+up/down to
> move the focus within the listbox without changing the selection, then
> ctrl+space to add a selection to the list. I think some browsers don't
> honor the ctrl+up/down to move the focus within the listbox.
> > > > >