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)
Tracking
()
M17
People
(Reporter: hybridea, Assigned: rods)
Details
Attachments
(1 file)
166 bytes,
text/html
|
Details |
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
Comment 1•25 years ago
|
||
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
Comment 2•25 years ago
|
||
Comment 3•25 years ago
|
||
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.
Comment 5•25 years ago
|
||
In order for the onclick handlers to be fired, we have to create a DOM click
event - see nsHTMLInputElement::Click, which does exactly that.
Assignee | ||
Updated•25 years ago
|
Target Milestone: --- → M17
Comment 6•25 years ago
|
||
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...
Comment 7•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•