WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Activating onclick event via keyboard

for

From: Bryan Garaventa
Date: Jun 28, 2013 10:55AM


Actually you can do the same thing with a Button element. A keyboard handler
is not necessary, nor for an Input tag with type=button or type=image. All
accept the click event from the keyboard.

This rule applies to elements that are natively non-active elements in the
browser, like Divs, Spans, etc.

----- Original Message -----
From: "Dylan Barrell" < <EMAIL REMOVED> >
To: < <EMAIL REMOVED> >
Sent: Friday, June 28, 2013 3:27 AM
Subject: Re: [WebAIM] Activating onclick event via keyboard


> Todd,
>
> Take a look at this blog posting
>
> http://unobfuscated.blogspot.com/2013/05/event-handlers-and-screen-readers.html
>
> Essentially, only anchor tags will consistently fire a click event, for
> all
> other tags, you need a keyboard handler.
>
> --Dylan
> > >