Open Bug 112298 Opened 23 years ago Updated 2 years ago

the alert box called when, document.onkeyup JS event is triggered, goes in a loop

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect

Tracking

()

Future

People

(Reporter: madhur, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

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
Attached file testcase
Keywords: testcase
OS: Windows 2000 → All
Hardware: PC → All
Summary: the alert box called when, document.onkeyup JS event is triggered, goes in a loop → the alert box called when, document.onkeyup JS event is triggered, goes in a loop

*** This bug has been marked as a duplicate of 92014 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
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. 
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
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 
Depends on: 92014
Target Milestone: --- → mozilla1.1
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
http://bugzilla.mozilla.org/show_bug.cgi?id=179125#c3

joki is no longer here
Assignee: joki → saari
Status: REOPENED → NEW
QA Contact: trix → ian
retargeting
Target Milestone: mozilla1.1alpha → Future
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. ***
Assignee: saari → nobody
QA Contact: ian → events
Any update about this bug?
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: