see attached testcase 1. hit a key to trigger the document.onkeyup JS event 2. an alert box will be displayed 3. hit the keyboard 'enter' --- The event goes into a loop 4. if i click the mouse button on the alert box 'ok' butoon, the event comes out of the loop. Note: the event goes into the loop only if the keyboard is used to discard the alert box. happens on all platforms NS6.2 : 2001-10-22-0.9.4 branch build NS6.2.1 : 2001-11-26-6.2.1 rtm build
*** This bug has been marked as a duplicate of 92014 ***
I do not see how this bug is a duplicate of bug 92014. 92014 says that "If keydown event opens an alert box, and space is pressed the box is dismissed." whereas, this bug specifies that "onkeyup event when triggered for the document object goes into a loop". Also checked this on 2001-11-26-10trunk build for win2000. Reopening this bug.
It is slightly different from 92014 but only because 92014 only talks about the space bar. This is exactly the same bug but with the enter key instead. I'll leave it as depends on rather than dupe
http://bugzilla.mozilla.org/show_bug.cgi?id=179125#c3 joki is no longer here
Got bit by this bug today, too. Rather annoying because I'm catching the onkeyup-Event on a text input box, check for keyCode 13 and validate the content. If it doesn't match the criterias, I display an alert() box, however when they press the enter key, it's immidiately fired by the text input box again.
*** Bug 293565 has been marked as a duplicate of this bug. ***
Any update about this bug?