ddhr.org
Website keyboard shortcuts Friday, Jul 7, 2006 4:31 pm

I'm a huge fan of websites that use keyboard shortcuts/hotkeys, like Gmail and Bloglines.  These shortcuts are made possible with some relatively simple javascript.  I've been thinking about adding shortcuts to my site for a while, but I'm really not a fan of javascript:  It slows things down, it doesn't always work, and I'd have to learn it. 

But then I learned about accesskeys (actually I saw it on Mark Pilgrim's site first).  It's pretty simple:  Just add accesskey="[key]" onto any A, AREA, BUTTON, INPUT, LABEL, LEGEND, or TEXTAREA.  Then the user can press ALT+accesskey (CTRL+accesskey on Mac) to use the shortcut.  So far, I've setup ALT+1 to go to the homepage.  Perhaps there will be more to follow. 

Update (2006-07-08 8:20am):  This works fine in Firefox.  But in Internet Explorer, the user needs to press enter after the accesskey combo. 

Linked:  Firefox 2.0 keyboard shortcuts

Hello
Hi, my name is Dave Hosier, and this website is where I write my unfounded opinions on trivial matters. Feel free to look around, but please refrain from reading anything.

about | contact | feed

Comments (feed)
Dave on Cubeicals wine rack: I ended up cutting a...
Harry on Cubeicals wine rack: So Dave, how did you...
Emily on Constant vs. average speed: I can give you sun...
Dave on Accents that annoy me: I'm pretty much saying I...
Wendy on Accents that annoy me: Are you passively aggressively saying...
JSW on Accents that annoy me: KInda like I can't tell...
Dave on Accents that annoy me: Understood, but my untrained ears...
Dave on Constant vs. average speed: I don't think so.  There...
JSW on Accents that annoy me: I realize with you being...
Emily on Constant vs. average speed: You don't think the beaches...