WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Accessibility clarification

for

From: Birkir R. Gunnarsson
Date: Aug 30, 2017 6:52PM


Hi
You must keyboard test a page without a screen reader running.
Screen readers generate a click event with either enter or spacebar on
buttons and links, and prevent the scroll action associated with the
spacebar.
For a dialog, I would use a close button, that way the dialog is
accessible on mobile devices. iOS device onscreen keyboards do not
have an escape key and the swipe gesture does not translate it escape.


On 8/30/17, Katherine Barcham < <EMAIL REMOVED> > wrote:
> Hi Naina,
> It's my understanding that when you're only using a keyboard to browse a web
> page you use the :
> * enter key to activate links, and
> * Spacebar or enter key to activate buttons.
>
> The way to close a modal using a keyboard is to use the:
> * Esc key to close it, or
> * Tab key to get to the Close link/button and then use the correct key to
> activate it (depending on whether it's a link or a button).
>
> I hope that helps you.
>
> Katherine Barcham
>
>