yes, you have the possibility to use keypress, for exemple, on $(document.)

try

$(document).keypress(function(e){
   if( e.keyCode == 13 )
      alert("Oi");
});

2007/9/7, hydra12 <[EMAIL PROTECTED]>:
>
>
> 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
>
>


-- 
Gabriel Z. Lovison

Reply via email to