[jQuery] Re: Exclude inputs when using the keypress event

2008-11-01 Thread Girish Venkatachalam
On 20:12:23 Nov 01, ryanfitzer wrote: > > Thanks Girish. I'll look into the plugin you linked to. > > Btw, the reason I'm using single keys is to keep from conflicting with > any OS or Browser hotkeys. I've also grown to prefer them because of > Gmail and Google Reader. > I guess it is a matte

[jQuery] Re: Exclude inputs when using the keypress event

2008-11-01 Thread ryanfitzer
Thanks Girish. I'll look into the plugin you linked to. Btw, the reason I'm using single keys is to keep from conflicting with any OS or Browser hotkeys. I've also grown to prefer them because of Gmail and Google Reader. Ryan On Nov 1, 7:20 pm, Girish Venkatachalam <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: Exclude inputs when using the keypress event

2008-11-01 Thread ryanfitzer
Thanks Dan! That looks to be what I was missing. I kept trying focus() but for some reason it always came back false even if I was in an input. Ryan On Nov 1, 3:31 pm, "Dan Switzer" <[EMAIL PROTECTED]> wrote: > Ryan, > > I'm building in a few keypress events into a site and I'm having > > > > >

[jQuery] Re: Exclude inputs when using the keypress event

2008-11-01 Thread Girish Venkatachalam
On 14:53:28 Nov 01, ryanfitzer wrote: > > I'm building in a few keypress events into a site and I'm having > trouble keeping them from triggering when a text field has focus. For > some reason this only happens on the second if statement. The first > one does fine. What am I missing? > I am not

[jQuery] Re: Exclude inputs when using the keypress event

2008-11-01 Thread Dan Switzer
Ryan, I'm building in a few keypress events into a site and I'm having > trouble keeping them from triggering when a text field has focus. For > some reason this only happens on the second if statement. The first > one does fine. What am I missing? > > The code: > > $('*:not(:input)').keypress(fun