[jQuery] Re: Unbind not working in IE6

2007-06-01 Thread Aaron Scott
> The problem is that even though you're unbinding the old one and > attaching a new one, the new one will still be executed, since we're > still within a 'keydown' event. You're exactly right. Thanks for taking a look. I found a way to rewrite things so that the functions doesn't have to call i

[jQuery] Re: Unbind not working in IE6

2007-06-01 Thread John Resig
That's because you're calling TB_keyCatch() from within itself, which is binding the keydown function again, before the old one is able to finish. The problem is that even though you're unbinding the old one and attaching a new one, the new one will still be executed, since we're still within a

[jQuery] Re: Unbind not working in IE6

2007-06-01 Thread Richard D. Worth
On 6/1/07, Aaron Scott <[EMAIL PROTECTED]> wrote: > What's causing the hiccup? I'm guessing it's the fact that it's > looking for a key down, and IE is still assuming the key is down when > the function is called. I tried using keypress instead of keydown, but > keypress doesn't seem to registe

[jQuery] Re: Unbind not working in IE6

2007-06-01 Thread Aaron Scott
> What's causing the hiccup? I'm guessing it's the fact that it's > looking for a key down, and IE is still assuming the key is down when > the function is called. I tried using keypress instead of keydown, but > keypress doesn't seem to register the left and right arrow keys, which > is exactly w