Accesskey standards | Clagnut § Web standards · Accessibility

Published in Brighton, UK

Clagnut

Accesskey standards

One of my goals for Clagnut is to make it accessible beyond good alt tags and valid code. It currently passes WCAG 1.0 Priority 1 and Section 508. To achieve this, a skip navigation link (skip nav) is required. To make skip nav (and other essential navigation) more effective, we should provide keyboard shortcuts through the accesskey attribute. For example:

<a href="#content" accesskey="2">skip nav</a>

This allows visitors to press ALT+2 or CTRL+2 (on Windows and Macs respectively) to move focus straight to the anchor in question. Keyboard shortcuts can also be applied to form controls by adding accesskey attributes to input tags in the same way.

It’s also helpful to add keyboard shortcuts for other important parts of the site, such as search, help, home page and the page which lists the keyboard shortcuts. It struck me that there should be consistency in access keys across the Web. I couldn’t find any mention of standards or suggestions on the Section 508 or WAI sites, so I attempted to see if a de facto standard has been adopted none-the-less.

The UK Government provides accessibility guidelines to which all its websites should comply. These guidelines state:

UK Government Shortcuts
Access keyTarget
SSkip navigation
1Home page
2What’s new
3Site map
4Search
5FAQs
6Help
7Complaints procedure
8Terms and conditions
9Feedback form
0Access key details

WebAIM provides similar shortcuts:

WebAIM Shortcuts
Access keyTarget
1Home page
2Skip navigation
3Printer-friendly version
4Search

These almost match with the access keys used by Mark Pilgrim (accessibility evangelist):

Dive Into Mark Shortcuts
Access keyTarget
1Home page
2Skip navigation
4Search
0Access key details

And finally, the accessibility magazine Made For All (now sadly no more) uses a few different shortcuts:

Made For All Shortcuts
Access keyTarget
1Home page
2News
3Previous issues
4Resources
5About
0Access key details

So there’s a fair bit of overlap between sites. The use of numbers is sensible as software often uses letters for its own shortcuts, particularly for access to the command menu. Letters also make more sense when dealing with forms (think shortcuts in dialog boxes). So the main bone of contention appears to be skip nav. Here’s a few samples:

Skip Nav Shortcuts Across the Web
ShortcutWeb Site
2Dive Into Mark
2Zeldman
2WebAIM
9Cinnamon Interactive
CClagnut
CAccessify
SUK Government

The consensus of opinion from this little lot is ‘2’. I’ve made the change accordingly and added more keyboard shortcuts to other parts of the site – see the new accessibility statement. I’ve also made my DHTML site contents menu a bit more keyboard friendly by adding an onfocus event handler to display it.

Related photos

  • \'My\' new book
  • Web Accessibility: Web Standards and Regulatory Compliance
  • Dang-Me

Next

Previous

Related posts

Keywords

â–º Machine tags

Comments

  1. 1

    Good work batman. I’ll be keeping an eagle eye over your work in this area.

    Guy
    Guy’s Gravatar
    2 May 2003
    09:38 GMT
  2. 2

    Hi Richard,

    Nice little accesskey article. I did a talk on accessibility at a recent event in brighton which covered this very issue. If you’re interested you can download my presentation notes from the skillswap site.

    You say that you need to have skip nav links for your site to achieve A rating. I’ve had a look at the various WAI checkpoints/guidelines but can’t find a mention of scip nav links in any of them. Which checkpoint are you refering to?

    p.s. love the site.

    Andy Budd
    2 May 2003
    11:33 GMT
  3. 3

    Skip nav is not a requirement of WCAG(Web Content Accessibility Guidelines) at any level, but it is mentioned in Section 508:

    1194.22o: A method shall be provided that permits users to skip repetitive navigation links.

    from http://www.access-board.gov/sec508/guide/1194.22.htm#)

    Rich
    Rich’s Gravatar
    2 May 2003
    12:52 GMT
  4. David Dorward
    2 May 2003
    18:10 GMT
  5. 5

    nice job on your journal but we need nore on like if you saw people what are they like, and how they dress.

    brandi Hayes
    23 May 2003
    13:04 GMT
  6. 6

    nice job on your journal but we need nore on like if you saw people what are they like, and how they dress.

    brandi Hayes
    23 May 2003
    13:04 GMT
  7. 7

    I still don’t see the need to provide accesskeys that simply reproduce the behaviour of other elements in HTML. Link relations do a much better job here, they are consistent across sites, work in most modern browsers (or even Lynx) and provide more meaning than a random key assignment.

    UK Gov’t #1 is rel=”home”, #3 is rel=”contents”, #4 is rel=”search”, #6 is rel=”help” and so on.

    Heck, you can even go and make up your own, like link rel=”privacy”.

    What makes it even more problematic IMHO is that even this small set of available numbers is used by some assistive tools to cover other functionalities. IBM HPR for example will read all headlines in a page when you press alt-1.

    Tomas Caspers
    23 May 2003
    13:22 GMT
  8. 8

    I made a list of available access keys if anyone is interested. The problem is that various browsers have already allocated Alt+certain keys for various menus.

    Reserved Keys in IE 5.5/6
    F – File
    E – Edit
    V – View
    A – Favorites
    T – Tools
    D – Address
    H – Help

    Reserved Keys in NS 7
    F – File
    E – Edit
    V – View
    G – Go
    B – Bookmarks
    T – Tools
    H – Help
    W – Window

    Reserved Keys in Opera 7
    F – File
    E – Edit
    V – View
    N – Navigate
    B – Bookmark
    M – Mail
    W – Window
    H – Help

    (Someone could list what the reserved keys are for Safari on Mac OS X…)

    Thus the remaining available accesskey values are (at most)
    `, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, [, ], /,
    C, I, J, K, L, O, P, Q, R, S, U, X, Y, Z

    (I wouldn’t recommend using punctuation marks)

    Hope this helps someone out there – I wasn’t able to find this information freely available on the net anywhere, so I compiled it on my own.

    Geoff
    23 May 2003
    19:07 GMT
  9. 9

    Geoff, I don’t think you really have to worry about available access keys on the Mac OS. All Mac menu commands are operated with the “command” (aka “clover” or “apple”) meta-key, possibly modified with the shift and/or option (alt) keys. Browsers that support access keys use the control key.

    Safari doesn’t support access keys (yet?).

    Michael Z.
    25 Jun 2003
    17:46 GMT
  10. 10

    Use Shift+ESC in Opera to use Accesskeys, not ALT.

    Hnrk
    20 Aug 2003
    01:14 GMT
  11. 11

    good effort – anything more recent on getting these things standardised?

    litsl
    27 Aug 2003
    21:53 GMT
  12. 12

    Just to add to the notion of menu conflicts… If fact it does not happen. The website shortcuts take priority over the browser ones, and so the site works OK without ambiguity, and to access the browser ones you can either press AND RELEASE Alt (which activates the menu) or else press F10 to bring it up…

    But anyway, it looks liee these numerical standards are now becoming much more widespread… As well as UK government, sites using them, we now also have:

    UK Healthcare sites,
    UK Military sites,
    UK Academic sites,
    USA Academic sites,
    Australia Government sites,
    Mainland Europe Commercial sites.

    Looks like other sites can start to use this scheme as well, as this would avoid a different set on every site…

    Richard W
    15 Sep 2003
    13:07 GMT
  13. 13

    Actually is not possible to define an accesskey standard due that all the keys are mapped in the different user agent.

    Only three keys are free of use:


    /

    *

    Roberto Scano
    8 Oct 2003
    13:15 GMT
  14. 14

    If you’re concerned about internationalization, the list of available letters shrinks considerably. For instance, the ‘Edit’ menu in the Swedish version of IE is labeled ‘Redigera’, with access key Alt-R.

    Various assistive software, such as screen readers, may use a large number of access keys in the application itself.

    Tommy
    7 Nov 2003
    07:11 GMT
  15. 15

    Well, it looks as though Konqueror is getting accesskeys, so these will probably end up in Safari (and Omni) before too long, and that will mean every major browser will be supporting them.

    For the record, Safari uses:
    File | Edit | View | History | Bookmarks | Windows | Help.

    Appler
    18 Mar 2004
    14:58 GMT
  16. 16

    Safari 1.2 now supports access keys, using the Control key.

    Olivier
    19 Mar 2004
    15:16 GMT
  17. 17

    Just found this site. Lovely!

    To add to hnrk’s note on Opera, their documentation says use shift + Esc THEN any letter A-Z. Numeric access keys appear not to work.

    (aside)the link to Mishoo’s DHTML calendar now redirects. Looks useful. Thks.(/aside)

    David H.
    1 Jun 2004
    04:32 GMT
  18. 18

    Oops! (blush)
    Numeric access keys do work in Opera. Sorry for the noise.

    David H
    1 Jun 2004
    04:37 GMT
  19. 19

    On the Site http://www.barrierefreies-webdesign.de/knowhow/accesskey/empfehlung.php is a good introduction to this theme.
    One good idea is the AccessKey-Pad find on http://2bweb.de/accesskey/index.htm

    Dominic Lüchinger
    4 Jan 2005
    21:21 GMT
  20. 20

    Well gang

    The debate rages on. At WATS.ca, we still advocate not using Accesskeys, for all the reasons weve always used. A recent development is one more reasons not to

    Recently, a team of students from the University of Texas wrote a Firefox/Mozilla extension plus a script to enable JAWS to interact with Firefox (see: http://www.wats.ca/articles/firefoxandjaws/71)) As part of their development, they created custom keyboard shortcuts to allow the visually impaired user to cycle through the Headings on the page – Alt + 1 for <H1>, Alt + 2 for <H2>, etc. Oops

    Where does this leave the UK Standard? Which should take precedence – the UK Standard or the user agent? Our postion is pretty clear.

    We encourage those interested in the full story to read the numerous article we have posted at WATS.ca: http://www.wats.ca/articles/accesskey

    John Foliot
    16 Jan 2005
    15:32 GMT
  21. 21

    Thanks for the article on intro to access keys – just discovered this after several years of running a website!
    Regards.

    Tom Thekathyil
    6 Jun 2005
    06:08 GMT
  22. 22

    On http://www.zwahlendesign.ch/en/node/48 exist a new accesskey php file.

    Chris
    5 Nov 2005
    19:49 GMT
  23. 23

    New suggestion on: http://www.zwahlendesign.ch/en/node/108 (German)

    Chris
    22 Nov 2005
    19:24 GMT
  24. 24

    I noticed that you stated that This allows visitors to press ALT+2 or CTRL+2 (on Windows and Macs respectively) to move focus straight to the anchor in question. Keyboard shortcuts can also be applied to form controls by adding accesskey attributes to input tags in the same way. Minor dicrepancy is that the Mac uses the Command (CMD) key and not the Control (CTRL) key.

    Brian
    Brian’s Gravatar
    2 Dec 2005
    09:54 GMT
  25. 25

    Brian, he’s right. Access keys on the Mac are done using the control key.

    Matt
    4 Dec 2005
    19:54 GMT
  26. 26

    Great article.

    In response to John Foliot’s comment on JAWS, and Firefox, JAWS already has a mode to cycle through headings very easily. It’s hard to see why a shortcut is required which mimics existing functionality. All I can say is that the firefox team seem to have an existing bias against access keys to begin with. Yet again, mobility impaired users are forced to take the back seat to screen reader users. The FF team have chosen to use alt + 1 despite the fact that they conflict with a published set of commonly used access keys (not just UK standard, but notably, all the key sets listed here consistently use 1 in the same way).

    But in reality it’s likely that most SR readers will stick with IE, Those who get the most use out of access keys will continue to use IE or OPERA so it would be misleading to present this point as a significant issue anyway. It’s not like people don’t have a choice of browser.

    Grant Broome
    15 Dec 2005
    12:17 GMT
  27. 27

    I realise this is a bit late in the day, however just came across a thread with regard to firefox that raises another issue with accesskeys, and the use ‘numbers’

    http://forums.mozillazine.org/viewtopic.php?t=381305

    Rich Pedley
    Rich Pedley’s Gravatar
    14 Feb 2006
    13:59 GMT

Add your comment

Comments are now closed on this post. If you have more to say please contact me directly.

Outside interest

Technorati references

Top Referrers

mobile comment