Keyboard shortcuts for navigation

Hi there,

I am wondering what the best way to enable keyboard shortcuts for a main navigation would be. I guess I can somehow assign a key for each nav item, for example “H” for home, but how would this be done - would it be in JavaScript?

Also, how would I let users know about this functionality? Should I simply put something in the help section on my website, or is there a more effective way?

Any suggestions would be welcomed, thanks.

You might find this article helpful. Depressing, but helpful.

https://webaim.org/techniques/keyboard/accesskey

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.