Open Bug 525942 Opened 15 years ago Updated 2 years ago

Mouse out event cancels keyboard button press


(Firefox :: General, defect)

3.6 Branch
Windows Vista





(Reporter: bugzilla, Unassigned)


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20091016 Firefox/3.5.4 GTB6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20091016 Firefox/3.5.4 GTB6 (.NET CLR 3.5.30729)

It looks like when a button is pressed by pressing the spacebar key while it has the focus rectangle, it uses the same mechanism as the mousedown and mouseup events.

Because the mousedown is cancelled by a mouseout, the mouseout can also cancel pressing the button with the spacebar.

It may be tricky to reproduce, because you can't hold down the spacebar to reproduce it, or it keeps sending keydown events (IIRC.)

Reproducible: Always

Steps to Reproduce:
You may have to try this a few times to get it to happen.

1. Make Firefox display a javascript confirmation dialog (OK/Cancel.)
2. Quickly jiggle the mouse cursor in and out of the OK button.
3. While doing 2, tap the spacebar.
Actual Results:  
OK button is not pressed. Dialog box does not go away.

Expected Results:  
OK button responds to spacebar unaffected by the mouse.
I should clarify that this affects all UI buttons, like the OK button in the About dialog.

Also, if you succeed in reproducing it, the button will press down when you mouseover it again.
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing.

You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version,
Whiteboard: [CLOSEME 2011-1-30]
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile ( If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Closed: 14 years ago
Resolution: --- → INCOMPLETE
I am still seeing this issue after creating a new profile, as instructed. Please let me know if you need a better demo of the issue, such as some kind of screen video capture.

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20101203 Firefox/3.6.13
Resolution: INCOMPLETE → ---
Whiteboard: [CLOSEME 2011-1-30]
Version: unspecified → 3.6 Branch
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.