Closed Bug 246447 Opened 21 years ago Closed 21 years ago

Alt/Control/Shift/Meta should generate KeyUp and KeyDown but not KeyPress

Categories

(Core Graveyard :: GFX: Gtk, defect)

Other
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ilya.konstantinov+future, Assigned: ilya.konstantinov+future)

Details

Attachments

(3 files)

Alt/Control/Shift/Meta should generate KeyUp and KeyDown events, but not KeyPress events. (KeyPress events are not supposed to be fired for all kinds of "system" keys.) Currently, the gtk implementation is a mess; KeyUp/KeyDown are not generated for any events, while KeyPress is generated only for Alt.
Attached patch PatchSplinter Review
Assignee: blizzard → mozilla-bugzilla
Status: NEW → ASSIGNED
Attachment #150588 - Flags: superreview?(jst)
Attachment #150588 - Flags: review?(bryner)
Comment on attachment 150588 [details] [diff] [review] Patch How about gtk2? That's relaly what we need to be focusing on.
Attachment #150588 - Flags: review?(bryner) → review+
Comment on attachment 150588 [details] [diff] [review] Patch sr=jst
Attachment #150588 - Flags: superreview?(jst) → superreview+
Checking in nsGtkEventHandler.cpp; /cvsroot/mozilla/widget/src/gtk/nsGtkEventHandler.cpp,v <-- nsGtkEventHandler.cpp new revision: 1.186; previous revision: 1.185 done leaving open for now in case you want to address gtk2 in this bug.
Attached file Testcase
Use the testcase to verify Mozilla behaves as the bug description says.
Attached patch Patch for gtk2Splinter Review
Attachment #152186 - Flags: superreview?(jst)
Attachment #152186 - Flags: review?(bryner)
Attachment #152186 - Flags: review?(bryner) → review+
Comment on attachment 152186 [details] [diff] [review] Patch for gtk2 sr=jst
Attachment #152186 - Flags: superreview?(jst) → superreview+
gtk2 patch checked in Checking in nsWindow.cpp; /cvsroot/mozilla/widget/src/gtk2/nsWindow.cpp,v <-- nsWindow.cpp new revision: 1.111; previous revision: 1.110 done please mark fixed if it is. would this be a good thing for the 1.7 branch?
the gtk2 checkin caused bug 250198 - event.keyCode = 0; readding this line fixes that bug
My patch for bug 246409 somehow crept into this patch. I appologize. Please return this line. I'll look further on how I can solve bug 246409 safely.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: