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 Wedding investment: Well obviously stay away from...
Rus on Wedding investment: Can you advise us on...
Someone who is not young but not old on Old age pains: Regarding Paragraph 1 Sentence 2,...
Bobby on Blackberry vs. black raspberry: I grew up in Olney,...
Richi near Frankfurt/M. on WinXP .mov thumbnails: Thanks Dude, that solved my...
saphrenne on Strummit From The Summit: I love this song so...
Rosalyne on Blackberry vs. black raspberry: I grew up eating BlackCaps...
BONNIE on Glitter cards: thats awsome... i laugh out...
Christy on WinXP .mov thumbnails: was skeptical at first... Windows...
Wendy on Tony Romo chokes: Have you seen this article...