Quick Nav:  Online Store   |   Login | Register

accesskey for menu navigation

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
koolworld
<50 Posts
Posts:35


07/25/2007 3:22 AM  

Hi John,

I just wanted to know if/how i could get CSS NavMenu to support the accesskey attribute for keyboard navigation?

Could you let me know if it's possible?

Thanks, Dan.

John Mitchell
Posts:3196


07/25/2007 6:53 AM  

Hi Dan,
This would be possible with version 3.0 using a template, but I do not have that attribute being output in the built-in NavTypes.

You could probably also do it with the replacements property that was introduced in later versions of the 2.0 menu, but it may be difficult to get it to use a different one for each item.

Try something like



Replacements="<a([^>]+)>(.)=<aaccesskey='$2' $1>$2"


The above replacement will attempt to grab the first letter of the tabname and make it the key.

koolworld
<50 Posts
Posts:35


07/25/2007 8:55 AM  
Hi John, thanks for the reply. I was thinking that it would work with the templates in version 3, which we have. Would the Replacements method work within the templates?

Cheers, Dan.
John Mitchell
Posts:3196


07/25/2007 3:42 PM  
Hi Dan,
If you are using a template then you would not need the replacements method. You could just put the TabId into each item node.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > accesskey for menu navigation



ActiveForums 3.7
Powered by: Snapsis Software