Ajax? Keyboard shortcuts in web app

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
I'm writing a Web Application (with PHP/xHTML/CSS/JavaScript etc), and want to provide the user with some keyboard shortcuts. I know this can be done, as FCKEditor etc allow keyboard shortcuts to make text bold and the like, but is there a "normal" way or doing it, or even better, is there an open source library I can use to help?

Cheers,
Matt
 
Augmented said:
Not sure where you're coming from with the AJAX...

Hence my question mark - I assumed that some of these Ajax libraries that are kicking around would have keyboard shortcuts built in. The only one i've found mentioning it so far is Prototype.

Access keys aren't really ideal, as it restricts what keys I can tie up. However, I shall take a peek through the links you posted. Cheers :-)

Matt
 
You want to be using an eventlistener on the keydown event. Check the keycode and do something accordingly :)
 
Back
Top Bottom