Ive used the shortkeys plugin for doing this
http://rikrikrik.com/jquery/shortkeys/

I'm not sure if it can be used on a specific div, but Ive used it on
$(document)


hydra12 wrote:
> 
> 
> I'm playing with the idea for a game, and I want to use the keyboard
> for control.  I need to catch keypress events without using a textarea
> or a text input box.  Can you bind keypress to a div or to <body>?  I
> haven't been able to get it working, but I'm new to jquery.
> 
> Thanks for the help!
> hydra12
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-catch-keypress-events-to-a-div--tf4403349s15494.html#a12562446
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to