Open
Bug 346174
Opened 19 years ago
Updated 3 years ago
NS_KEY_DOWN/NS_KEY_UP events for modifiers carry the wrong modifier state
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
NEW
People
(Reporter: mark, Unassigned)
Details
Attachments
(1 file)
1.04 KB,
text/html
|
Details |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b1) Gecko/20060708 Firefox/2.0b1
(Really, I haven't updated in that long?)
When you press a modifier key such as Shift, the NS_KEY_DOWN event dispatched for VK_SHIFT's shiftKey field is clear. When you release Shift, the NS_KEY_UP event has a shiftKey field that's set. Testcase at attachment 230983 [details], I'll attach it to this bug too.
On Windows, and on the Mac after the implementation I just wrote in bug 26269, the modifier key fields are set to reflect the state of the keys at the time the event is dispatched, so an NS_KEY_DOWN event for the control key always has the controlKey field set.
Reporter | ||
Comment 1•19 years ago
|
||
This contains handlers for keydown, keyup, and keypress events so you can see what's going on.
Reporter | ||
Updated•19 years ago
|
Attachment #230991 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 2•19 years ago
|
||
(And the meta key generates a single keypress event. That doesn't seem right. It doesn't generate any autokey keypress events.)
Comment 3•4 years ago
|
||
Removing myself as assignee for editor bugs, since the editor project is (sadly) long gone.
Assignee: akkzilla → nobody
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•