Thanks!  $(document).keypress was exactly what I needed!

On Sep 7, 3:11 pm, seedy <[EMAIL PROTECTED]> wrote:
> Ive used the shortkeys plugin for doing 
> thishttp://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-di...
> Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to