Keyboard shortcuts with jQuery

yoyo19 picture yoyo19 · Feb 27, 2009 · Viewed 157k times · Source

How can I wire an event to fire if someone presses the letter g?

(Where is the character map for all the letters BTW?)

Answer

npad picture npad · Jun 22, 2010

Since this question was originally asked, John Resig (the primary author of jQuery) has forked and improved the js-hotkeys project. His version is available at:

http://github.com/jeresig/jquery.hotkeys