Sometimes when I've got inspector in the same window as my website I have to click to body to get stuff to behave. I love splitting hairs.

On Feb 22, 2010, at 7:49 PM, Aaron Newton wrote:

if the window is focused, the document is focused.

2010/2/22 Fábio M. Costa <[email protected]>
it wont work if the document is not "focused".

--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces



On Mon, Feb 22, 2010 at 9:25 PM, Aaron Newton <[email protected]> wrote: event bubbling should send all key strokes up to document.body unless you are catching them and calling stopPropagation on them...


On Sun, Feb 21, 2010 at 2:03 PM, Oskar Krawczyk <[email protected] > wrote:
Tried $(document.body).focus();​​ ?

If that doesn't work, post the code to jsfiddle.net and paste back a link to the Mailing List.


On 21 Feb 2010, at 21:54, waveydab wrote:

> Hi,
>
> I'm trying to get what I'll call global hotkeys working for some
> debugging I'm doing. I've tried defining event listeners for the
> "document" but that still seems to require clicking(giving focus?) to
> the document before they'll operate. Any ideas?
>
> david





Reply via email to