WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Cannot activate links with Keyboard

for

From: Birkir R. Gunnarsson
Date: Sep 5, 2018 8:53AM


Definitely lookout for any preventDefault code in the Javascriptfor the page.
The links work fine with a simulated click event, so something is
preventing the enter key from firing those events, and you need
event.preventDefault to do that for links (because natively the enter
key triggers their onclick event).
Oh, the joys of well-intended but badly coded web-based menus.



On 9/5/18, Isabel Holdsworth < <EMAIL REMOVED> > wrote:
> Hi Joseph,
>
> It looks as though the menu system can be traversed using the arrow
> keys. Perhaps the script that's providing that functionality is
> preventing the default behaviour for those links.
>
> Cheers, Isabel
>
> On 05/09/2018, Joseph Sherman < <EMAIL REMOVED> > wrote:
>> Hi all. We have a new page going up (https://slu.cuny.edu/) and while I
>> can
>> TAB to the top of page and main menu items ("Prospective Students,
>> Current
>> Students; About, etc.), I cannot activate them with the Enter key on the
>> keyboard (Please ignore the other issues we are working on). I assume it
>> has
>> something to do with the javascript event listener Keydown event, but I'm
>> not sure what the issue is or how to fix it.
>>
>> Any suggestions appreciated. Thanks.
>>
>>
>> Joseph
>>
>> >> >> >> >>
> > > > >


--
Work hard. Have fun. Make history.