How do I add keyboard accessibility to menus [solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

How do I add keyboard accessibility to menus [solved]

Post by douglas1438 »

Hi,
I'm using cssmenu.tpl but need to add keyboard access so when the tab key is pressed the drop down shows and you can tab down the list.

I've found this example but am unable to make it work with CMS Made Simple.

http://uablogs.missouri.edu/interface/2 ... ccessible/

Have spent sometime searching through the forum without success, suprised nobody has encountered this before.
Thanks,
Chris
Last edited by douglas1438 on Fri Nov 08, 2013 4:50 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How do I add keyboard accessibility to menus

Post by Dr.CSS »

Using their CSS you would change the .nav call to #primary-nav, same in the JS function call...
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

Re: How do I add keyboard accessibility to menus

Post by douglas1438 »

Back to this problem again, tried changing their code to call #primary-nav instead of .nav and also adding .nav as a class to my menu without success.

Any further advice would be very much appreciated.

Thanks,

Chris
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How do I add keyboard accessibility to menus

Post by Dr.CSS »

Maybe all you need is to use the accessible_simple_navigation.tpl then add the access keys to the Options tab...

If you look at a default install home page you will see the number 1 in the Access Key: ...

Access Key:
Tab Index:
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

Re: How do I add keyboard accessibility to menus [solved]

Post by douglas1438 »

Managed to use top-menu.js in the end.

Link here:

https://code.google.com/p/keyboard-acce ... uery-menu/
Post Reply

Return to “Layout and Design (CSS & HTML)”