E-mail List Archives
Re: Activating onclick event via keyboard
From: Birkir R. Gunnarsson
Date: Jun 27, 2013 7:06AM
- Next message: David Farough: "Language switching issue in a PDF form"
- Previous message: Weissenberger, Todd M: "Activating onclick event via keyboard"
- Next message in Thread: Dylan Barrell: "Re: Activating onclick event via keyboard"
- Previous message in Thread: Weissenberger, Todd M: "Activating onclick event via keyboard"
- View all messages in this Thread
Todd
There are a few aria-expanded examples at www.3needs.org
Re the onClick event.
You need to code the div so that it listens for onKeydown for enter
and spacebar as well as a mouse click (codes 13 and 32).
For natively keyboard accessible html things, such as links or
buttons, you are set, but for divs you need to make sure these things
can be accessed via keyboard, for keyboard only users and those with
less savvy screen readers *grin*.
See this article for reference:
http://www.456bereastreet.com/archive/201302/making_elements_keyboard_focusable_and_clickable/
hth
-Birkir
Birkir R. Gunnarsson
Accessibility Subject Matter Expert | Deque Systems
On 6/27/13, Weissenberger, Todd M < <EMAIL REMOVED> > wrote:
> As part of an ARIA test (aria-expanded) I'm using onclick to change the
> display property of a <div> that can receive focus. When NVDA is running, I
> can activate the widget using the Enter key, but when the screen reader is
> not running, only a mouse click will work. What gives?
>
> Todd
>
> T.M. Weissenberger
> Web Accessibility Coordinator
> University of Iowa
> <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
> 319-384-3323
>
> > > >
- Next message: David Farough: "Language switching issue in a PDF form"
- Previous message: Weissenberger, Todd M: "Activating onclick event via keyboard"
- Next message in Thread: Dylan Barrell: "Re: Activating onclick event via keyboard"
- Previous message in Thread: Weissenberger, Todd M: "Activating onclick event via keyboard"
- View all messages in this Thread