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)

1.8 Branch
x86
Linux
defect

Tracking

()

People

(Reporter: mark, Unassigned)

Details

Attachments

(1 file)

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.
Attached file Testcase
This contains handlers for keydown, keyup, and keypress events so you can see what's going on.
Attachment #230991 - Attachment mime type: text/plain → text/html
(And the meta key generates a single keypress event. That doesn't seem right. It doesn't generate any autokey keypress events.)

Removing myself as assignee for editor bugs, since the editor project is (sadly) long gone.

Assignee: akkzilla → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: