Key event handling radically diffferent from Firefox 2.0, breaks web app




11 years ago
8 years ago


(Reporter: amit, Unassigned)


3.0 Branch
Windows XP

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [CLOSEME 2010-10-01], URL)



11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008051206 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008051206 Firefox/3.0

keydown and keypress events work differently on 3.0. Previously, discarding a keydown would not generate a keypress, but that seems to have changed.
Please see the linked URL - I have implmented a multilingual virtual keyboard, works by trapping and translating key events in a script, and discarding the original event. This is broken on FF3 RC1.

A fix, or a workaround suggestion would be very welcome.

Reproducible: Always

Steps to Reproduce:
1. navigate to
2. press any character key - 
Actual Results:  
the keyboard character is repeated 3 times in ff3, but works fine in 2.0

My script translates the key character on onkeydown and discard onkeypress. Works fine on 2.0, and the behavious makes sense - keydown discarded implies keypress should be discarded as well?
At the very least, the new behavious should be documented so developers can code around it.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008051522 Minefield/3.0pre

Not sure what you mean; when I type or click "u", I see only one "u".
Reporter, are you still seeing this issue with Firefox 3.6.9 or later in safe mode? If not, please close. These links can help you in your testing.
Whiteboard: [CLOSEME 2010-10-01]
Version: unspecified → 3.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.10 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.
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.