Slashdot Mirror


Benefits of Using Access Keys in HTML?

kandresen asks: "I have been considering the use of access keys in my web site as an accessibility feature, and was originally looking at possible side effects this could have for people with PCs and Macs, however in my search I found the problem was far wider than just that, as people with different language version of these OS'es may have different key bindings. Many of the websites I deal with have an International reach, so I can see this may limit the available keys quite a bit. The better approach, which would avoid the entire problem, unfortunately does not seem to be a reality, even in the upcoming version of XHTML 2. So, I wonder whether other webmasters have had many complaints from their users regarding the use of access keys interfering with system specific shortcuts, such as bookmarking, help functions, accessing of favorites, and so forth. Do you have any tips as for how to avoid negative side effects? Are there some keys that do not cause much problems regardless of language, OS, or the client being used? Is there a way to use Javascript to take care of such problems?"

42 comments

  1. Meh. by irc.goatse.cx+troll · · Score: 3, Insightful

    Sounds like a good idea, and as a keyboard cowboy I appreciate it, but the first time I tried to leave a webpage by hitting alt+d to go to the address bar to type a url and got a donation page I was instantly turned off by the idea. While you can do it right, its rarely worth the effort unless you're doing a full out web app, and even then keep it optional.

    --
    Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    1. Re:Meh. by VernonNemitz · · Score: 1

      How about:
      Start with a HINT popup (as mouse cursor goes over hotspot) showing a little menu.
      On the menu would be keyboard shortcuts.
      If you are starting from the viewpoint that no keyboard shortcut can be a standard, then just make up some nonstandard ones consistent across YOUR web pages.
      For example, ALT-1, ALT-2, ALT-3, ..., or CTRL-1, CTRL-2, CTRL-3... (the popup menu would explain which does what)

    2. Re:Meh. by Anonymous Coward · · Score: 0

      Why not hit F6 to get to the address bar? Or does your browser not allow that key? Just wondering.

    3. Re:Meh. by irc.goatse.cx+troll · · Score: 1

      More out of the way. Keyboard is laptop stlye and doesnt seperate the f keys, so I'd have to look to see where it is to make sure I'm hitting the right one.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    4. Re:Meh. by Anonymous Coward · · Score: 0

      Gotcha, I haven't used a laptop in awhile so I forgot about that layout, lol.

  2. Not just OS specific by paulbiz · · Score: 4, Informative

    It changes from one browser to the next. I believe in Opera you need to press Shift-ESC then the access key. Others may use ALT or some kind of platform-specific modifier key.

    A program theoretically shouldn't interfere with the system commands, but...

    In a world where we assume ALT is the access key modifier, and Alt-F is one of the shortcuts, does that deny them the ability to press Alt-F to access the File menu? I don't think there is any consistent behavior at all.

    Check out this page. It has a table of known conflicts or potential problems.

    I tried using on a company intranet site, simply for my own amusement, and gave up. While I thought it was nice to press Alt-N to view the news page, nobody else knew how to use it or cared to learn. Most of them never take their hand off the mouse anyway (if they are physically able to choose).

    1. Re:Not just OS specific by IntlHarvester · · Score: 4, Interesting

      > nobody else knew how to use it or cared to learn.

      Aside from accessiblity (maybe a screen reader picks it up and communicates it?) -- I've seen AccessKeys used successfully in several webapps that replaced old style terminal applications, where there's a trained userbase doing data entry type stuff.

      --
      Business. Numbers. Money. People. Computer World.
    2. Re:Not just OS specific by Bake · · Score: 1

      ALT-F.

      This has got to be my single biggest gripe with Wikipedia.

      Wikipedia binds ALT-F to bring focus to the search box. This blocks me from going to the File menu of my browser (Firefox) where to close the current tab (Alt-F-c). Yes I know about Ctrl-W, but I prefer Alt-F-c as I have to move my hand less.

    3. Re:Not just OS specific by Anonymous Coward · · Score: 0

      Just hit & release Alt, f, then c. Works in FF under Windows anyways.

  3. Accesskeys can conflict with application shortcuts by Matt+Perry · · Score: 2, Informative

    Access keys can conflict with short cuts already defined by the browser. See this entry at accessify.com about the problem. Also read this article.

    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  4. google.com search result links by ville · · Score: 1
    So when will google.com let us open the result we want through keyboard? Or maybe it already does and I'm behind my times.

    // ville

    1. Re:google.com search result links by irc.goatse.cx+troll · · Score: 1

      They used to have something in labs that worked well, I'm not sure what happened to it. Maybe we'll see it as an option for google.com/ig or something similar.

      Until then you can do them clientside with Google Access Keys (greasemonkey script)

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    2. Re:google.com search result links by GeckoX · · Score: 2, Insightful

      If you use Mozilla, it's called type-ahead-find.
      Check it out, with it you can easily browse the net sans mouse.

      --
      No Comment.
  5. Display accesskeys using CSS by Chris+Pimlott · · Score: 4, Informative

    I tried using on a company intranet site, simply for my own amusement, and gave up. While I thought it was nice to press Alt-N to view the news page, nobody else knew how to use it or cared to learn.

    Did they even know they were there? I find that many sites use AccessKeys but give no indication that they do or what they are. Luckily you can use a handy bit of CSS to help out.

    Using the selector before pseudo selector, you have have the accesskey shown automatically displayed before the element. For example, I have this in my Mozilla userContent.css:

    a[accesskey]:before {
        content: " " attr(accesskey) " ";

        text-transform: uppercase;
        white-space: pre;
        border: thin solid;
        font-family: sans-serif;
        text-decoration: underline overline;
        margin-right: 0.5ex;
    }

    The first two lines are the important part, the rest is just styling to make it look nice. Specifically, it adds a small box with the capitalized access key character before any link that uses one.

    For example, when I visit Freshmeat, the menu at the top looks something like this:

    [H] home | [B] browse | [A] articles | contact | chat | submit

    It's a neat trick and can be very handy. While it's true most sites don't use accesskeys, there's more out there than you might expect, and the ones that do almost never advertise it.

    1. Re:Display accesskeys using CSS by Sparr0 · · Score: 1

      i never even knew freshmeat had access keys. thanks!

    2. Re:Display accesskeys using CSS by Kiaser+Zohsay · · Score: 1

      Sweet!!! I now see that Wikipedia uses access keys too. Who knew?

      --
      I am not your blowing wind, I am the lightning.
    3. Re:Display accesskeys using CSS by jrockway · · Score: 1

      Me. I use emacs-style keybindings to edit Wikipedia articles... but not anymore, since C-k and C-e are bound to the equivalent of M-x fuck-the-user-over.

      I know I should be using the external editor mode and be doing the editing in emacs... but I'm lazy. If you want to tap my intellect, at least make it easy for me ;)

      --
      My other car is first.
  6. No problem when properly implemented by Baloo+Ursidae · · Score: 4, Informative

    No point in making a web browser use the same keys for navigation as for itself. Too bad only the KDE developers have really thought this through so far.

    Because of this, the only browser to properly implement it so far is Konqueror. Press control, and access key labels appear over the appropriate links. Press that key.

    --
    Help us build a better map!
  7. command line to infinity and beyond. by Gravis+Zero · · Score: 1

    you could always make a form based navigation system that is a command line. ^^

    i do know that with javascript you can specify actions for various keys like arrows and such. you could make a "virtual mouse pointer" that you can control with arrow keys if it is absolutely imperitive to be able to navigate without a mouse. i suggest if you are going to make a menu that is keyboard activated, you use the underline scheme like File. ive never considered of keyboard only interface as a must.

    --
    Anons need not reply. Questions end with a question mark.
  8. access keys and efficiency by kerasineAddict · · Score: 2, Insightful

    The way I see it, those that want to browse with keyboard shortcuts already have them. As an avid user of the Mozilla typeaheadfind I have usable shortcut keys that are standardized from page to page. All I do is type the text of what I want. Why would I want to learn a new way that will only only work on your page?

    So essentially, the users that want this added efficiency already have it, in lynx/firefox/browser of choice, and those that don't probably wouldn't bother to learn the page specific keys anyway.
    Or am I missing a category of people?

    1. Re:access keys and efficiency by Anonymous Coward · · Score: 0

      You're missing the category "feature-obsessed managers". However, they're not technically "users".

  9. Use Numbers by Gryftir · · Score: 3, Interesting

    Maybe it's just me, but I've always felt that numbers were the natural access key for web applications.

    International reach? You know any keyboards that DON'T use arabic numerals in the same place on the keyboard?

    As for program conflicts, You need to make the site distinguish between firefox on linux and on other systems, since I believe the default on linux to switch between tabs is alt-(number key). You also need to
    give users the option to turn it off if they are using windows readers such as JAWS. But other then that, there are no conflicts.

    --
    http://www.santacruzbynight.com/index.shtml Santa Cruz By Night Vampire Larp
    1. Re:Use Numbers by headshrinker · · Score: 2, Informative

      Yes, quite a few arabic keyboards in fact. They use different characters to represent their numbers.

      (let's see if /. does UTF-8 now...)

      are the numerals used in many parts of the middle-east. In case those don't render (they didn't in preview mode here), try wikipedia's article on Arabic numerals.

      I've no idea how those are represented internally though, so it's possible that you could still use Arabic numeral access keys with those numbers and have it all work.

    2. Re:Use Numbers by iangoldby · · Score: 1

      The standard access keys, according to Dive Into Accessibility are:
      Access key 1 Home page Access key 2 Skip to main content (the navigation bar skip link) Access key 9 Feedback Access key 0 Accessibility statement
      so I think you are on to something there. Stick to numbers and you stand a good chance of not conflicting with any browser short cuts.

  10. Bad accessibility by Illume · · Score: 2, Insightful

    Keep in mind that nobody wants to learn new shortcuts for every website. Some users might not be able to navigate a page if their navigation keys are reprogrammed. If you want to make your pages more accessible then make sure that your pages use "strict" xhtml and css. Then visitors who need additional accessibility don't run into problems with their browser-modifications.

    Obscure keyboard shortcuts are convenient for blog/cms-administrators. And administrators can tweak the shortcuts if they don't like them. Regular users don't have this option, so they might be annoyed.

  11. I know one group that seems to get accessibility by akookieone · · Score: 2, Interesting
    http://plone.org/accessibility-info

    The plone folks have spent some real time & energy on accessibility as well as standard based design. The nice part is this leads the way for anyone building their own site with plone to get to these standards quickly - esp. in their latest release.

    If you are trying to tackle accessibility, I recommend using plone, or at least looking at their code (you wouldn't be the first to use plone 'code' outside plone - I remember wikipedia css crediting plone... http://en.wikipedia.org/skins-1.5/monobook/main.cs s?5 )

    Not only do they have hotkeys and use valid xhtml and css, they also explain all this, list the (numeric based) keys, differences between browsers, and link this info from every page (upper right) as prominently as the site-map and contact links.

    (And no, I am not a plone committer/member, just an occasional user.)

  12. Best Viewed in English by nes11 · · Score: 1

    Just put a tag at the bottom of your site that says Best Viewed in English Language. ;-)

  13. Individual preference by trewornan · · Score: 1

    I think most people who like to avoid using the mouse and stick to the keyboard will already have something set up. I use conkeror for example. If I was more extreme I'd be using something like ratpoison too. You don't need to provide this for people, they can arrange it themselves.

  14. ALT-D by David_Bloom · · Score: 1

    Yes, I know CTRL-L is the correct way to get to the address bar, but pressing ALT-D is a tough habit to break

    --

    Karma: Excellent (fuck, even in the future moderation doesn't work!)
  15. Use Scroll Lock by Flammon · · Score: 1

    How about using the Scroll Lock to toggle between web app and OS app?

  16. Wikipedia AccessKeys vs Emacs by daviddennis · · Score: 1

    MacOS X has a very thoughtful feature for people like me who have been using emacs virtually since birth.

    In Cocoa text boxes, the standard emacs keystrokes - Control-N for next line, Control-P for previous, etc - work just as they do in emacs. So I can edit my text more or less as I do in emacs, which is a great blessing for me because the keystrokes are truly embedded in my fingertips.

    Well, Wikipedia uses AccessKeys, and this absolutely ruins my browsing experience. I was typing merrily away writing an entry when I hit Control-O to open a new line.

    Wikipedia interpreted this as my desire to log out, and I couldn't even use the back button to get my document back. I lost an hour of work and was fuming at the people who designed it.

    Why would you have an accesskey for the logout function, anyway? It's not like I ever actually /want/ to log out. (I always use my own computer to compose articles, and I really, really HATE typing in passwords).

    I actually created a Wikipedia bug request about this. It's something a very small number of people are extremely angry about, but the administration doesn't care since it's so few people. But I sure wish I could turn off the feature because it has sabotaged my entries many times.

    I suppose I could use a regular text editor to write my entries and then post them but that's a bit of a bother, at least for me.

    D

  17. Use numeric access keys... by StandardsSchmandards · · Score: 1

    I have been participating in the development of the web guidelines for Sweden's public sector. In that document we recommend using a specific set of access keys (of which most are numeric) to make the user experience consistent between sites.

    Using numeric access keys reduce potential conflicts with other access keys in the browser.

    1. Re:Use numeric access keys... by Matt+Perry · · Score: 1

      Keep in mind that numbers for access keys will conflict with Firefox which uses Alt+number to switch tab focus.

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    2. Re:Use numeric access keys... by StandardsSchmandards · · Score: 1

      The default keys to switch tab focus in Firefox is Ctrl+number.

    3. Re:Use numeric access keys... by Matt+Perry · · Score: 1

      Ctrl+number doesn't work for me. Alt+number does. Alt+number is also listed as the correct shortcut in the help document (Help->Help Contents then select Keyboard Shortcuts in the window that appears). Maybe it's different on your Firefox? I'm using FF under Debian.

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    4. Re:Use numeric access keys... by StandardsSchmandards · · Score: 1

      Maybe that is a FF Linux/Windows thing? I am using FF 1.5 on Windows XP and the help file says "Select Tab (1 to 9) Ctrl+(1 to 9)".

    5. Re:Use numeric access keys... by Ziviyr · · Score: 1

      Thank you.

      I wanted to know that.

      --

      Someone set us up the bomb, so shine we are!
  18. Simple Question by Hard_Code · · Score: 1

    WTF are "Access Keys"? I thought Doom-style keycards for a second.

    kthx

    --

    It's 10 PM. Do you know if you're un-American?
    1. Re:Simple Question by Hard_Code · · Score: 1

      For anyone wondering it is apparently an ability you can specify that allows uses to navigate to links in your page with a keyboard shortcut.

      --

      It's 10 PM. Do you know if you're un-American?
    2. Re:Simple Question by Anonymous Coward · · Score: 0

      nobody else was wondering because you're the only person on the planet who doesn't know.

  19. The Answer Guy says: by TheAnswerGuy · · Score: 1

    No. Possibly. Maybe.