Closed Bug 36822 Opened 25 years ago Closed 25 years ago

ENTER key pressed in dialogs is being used twice

Categories

(SeaMonkey :: UI Design, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: morse, Assigned: bugs)

References

()

Details

If a dialog is exited by pressing ENTER, that keypress is not getting absorbed and is being used by the html page as well. Here's an example to demonstrate this: 1. Start browser (this is important -- after doing some operations this bug no longer occurs) 2. Go to http://people.netscape.com/morse/password.htm. This presents an html login form. 3. Select edit/preferences from the menu 4. Exit the preference dialog by pressing ENTER (if you click on OK or CANCEL, this bug does not occur) 5. Preference dialog closes. This is good and is what was expected 6. html login form gets submitted (as evidenced by the fact that it is erased and then redrawn). This is bad and was not expected. Such form submission would occur if the user pressed ENTER when viewing the login form. So it seems like the ENTER that was pressed to exit the preference dialog is also being used by the html form. Another way to exhibit this bug is to use single signon to collect more than one username for the form. Then when going to the form you will be presented with a dialog to select which user you want. If you exit that dialog by pressing ENTER, the form gets submitted as well.
Ignore this. I just pulled a fresh tree and am no longer seeing the problem. So it must have gotten fixed with recent changes.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
verify wfm latest nightly
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.