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 'keydown' event.

--John

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 register the left and right arrow keys, which
> is exactly what I need (and keydown is catching them just fine).

I went back and tried it with keypress bound to something other than
left and right, and I'm still getting the endless alerts. I'm still at
a complete loss.


Reply via email to