Reputation: 11
I have been reading all the guidelines and I am slightly confused. Do all links on then navigation bar need to have a keyboard shortcut in order to comply with WCAG 2.1 AA? The guidelines seem to mention more what how to comply if you use them but doesn't state you have to use them so I am confused.
Thanks in advance.
Upvotes: 0
Views: 338
Reputation: 333
You need to make sure that default system behavior of keyboard shortcuts is not overridden by your website/application. If you do override the shortcut key, you need to let the user know of it and provide a mechanism to change those shortcut keys to user choice.
Upvotes: 0
Reputation: 24945
No
No - you are confusing several sections of WCAG.
Keyboard shortcuts are separate to skip links, which are what I think you are getting confused by.
Skip Links allow a screen reader user to jump past the navigation at the top of a page, this avoids having to tab past all of the navigation each time they enter a page.
Menus - as long as they are semantically correct (<nav>
with an <ul>
of links) are accessible anyway as screen reader users navigate via links, tab stops, headings etc. using shortcuts on their screen readers (if you have drop down menus then there are a lot of things to consider beyond the scope of this question).
Shortcut keys allow different actions and sections to be accessed quickly via the given shortcut key.
I would advise against setting these, if you do you need to:
They are not worth the effort for a simple website and should only be used in complex applications for features (not generally for navigation, but for things like a WYSIWYG).
Upvotes: 3