Firefox has a known issue with using the numeral 1 as an access key shortcut, a bug that has been present through several versions of the browser. Essentially Firefox sees the 1 key as being shifted when it is used. As accesskey 1 is usually reserved for the home / index page, the solution is to create an alternate accesskey link to the home page with the exclamation point (i.e. a shifted 1) as the shortcut. This is easy, as the home page is usually linked to at least twice on every page: once in the navigation bar, and once in the <h1>
element. An example would be:
<h1><a href="index.html" accesskey="!">Brobdingnagian Corporation</a></h1>
<nav role="navigation">
<a href="index.html" accesskey="1">Home</a>
<a href="about.html" accesskey="2">About</a>
<a href="map.html" accesskey="3">Site Map</a>
<a href="search.html" accesskey="4">Search</a>
<a href="help.html" accesskey="0">Help</a>
</nav>
Firefox will interpret any use of the 1 key as an exclamation point, and use the accesskey
attribute in the link around the h1
content; all other browsers will use the normal 1 shortcut provided by the link in the unordered list.
Enjoy this piece? I invite you to follow me at twitter.com/dudleystorey to learn more.