E-mail List Archives
Re: Expected behavior for listbox selection
From: Jonathan Avila
Date: Dec 11, 2018 8:56AM
- Next message: Mark Magennis: "Does aria-owns child need to exist prior to being used?"
- Previous message: Sudheer Babu: "Re: NVDA not reading text"
- Next message in Thread: Catt, James: "Re: Expected behavior for listbox selection"
- Previous message in Thread: Mohith BP: "Re: Expected behavior for listbox selection"
- View all messages in this Thread
> Enter has traditionally been used to submit forms, so I'd personally steer away from it as a selection key.
I agree -- I am always hesitant to use enter in fear of accidently submitting a form and usually try space first.
Jonathan
-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Isabel Holdsworth
Sent: Monday, December 10, 2018 4:48 AM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Expected behavior for listbox selection
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
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
> ctrl+don't
> honor the ctrl+up/down to move the focus within the listbox.
> > > archives at http://webaim.org/discussion/archives
> >
- Next message: Mark Magennis: "Does aria-owns child need to exist prior to being used?"
- Previous message: Sudheer Babu: "Re: NVDA not reading text"
- Next message in Thread: Catt, James: "Re: Expected behavior for listbox selection"
- Previous message in Thread: Mohith BP: "Re: Expected behavior for listbox selection"
- View all messages in this Thread