[Proto-Scripty] firefox not firing keypress/keydown event unless focus is in textbox

2009-03-10 Thread chloraphil
Could someone please help me understand what is going on here? Note that I want the event to fire regardless of where focus is. The following works fine on IE6, IE7, and chrome. Not working on ff 3.0.7. Event.observe(window, 'load', function(){ Event.observe(document.body, 'keydo

[Proto-Scripty] Re: firefox not firing keypress/keydown event unless focus is in textbox

2009-03-10 Thread chloraphil
"T.J. Crowder" wrote: > > > Hi, > > > Observe document, rather than document.body: > > > Event.observe(document, 'keydown', myEventHandler); > > > That works with FF3, IE7, and Opera9 (all on Windows). > > > HTH, > > -- > > T.J. Cro