Closed Bug 39160 Opened 25 years ago Closed 25 years ago

onClick not executed when button "pushed" from keyboard using spacebar or enter

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED DUPLICATE of bug 25300

People

(Reporter: hybridea, Assigned: rods)

Details

Attachments

(1 file)

onClick not executed when button "pushed" from keyboard using spacebar or enter here's the scene: 1. started in main window. 2. second window created - contains a form 3. button click executed by tabbing and hitting space or enter... no onClick event 4. if button is clicked with the mouse an onClick event is caused
hybridea@hotmail.com - we need a URL or testcase which demonstrates this problem, please. Use the "Create a new attachment" link above, or fill in the URL field. Thanks :-) Gerv
Attached file test case
Steps to reproduce problem: 1. Change the text. 2. Tab to the button. 3. Press space. The text is reset. 4. Click the button. An alert appears.
accepting
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
In order for the onclick handlers to be fired, we have to create a DOM click event - see nsHTMLInputElement::Click, which does exactly that.
Target Milestone: --- → M17
I'm working on, and have a fix in my tree for, related bug 25300. Have a fix for this already? If not, I can take this one and work it in to my other changes...
This is actually a subset of a proper fix for bug 25300. I'll make sure this works when I make that checkin. *** This bug has been marked as a duplicate of 25300 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Updating QA contact.
QA Contact: ckritzer → bsharma
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: