Closed Bug 219017 Opened 21 years ago Closed 18 years ago

[gtk2] key event isn't consumed correctly

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: iamawalrus, Assigned: iamawalrus)

References

Details

Attachments

(1 file)

1.launch mozilla
2.open Preferences Panel
3.find a page which has combobox, for example, Navigator
4. click the combobox to roll it down
5. press down arrow key

expect: the selection moves down for one column
actual result: the selection moves more than one column. sometimes it goes in a
dead loop until another event (such as mouse click) is triggered.
Attached patch patchSplinter Review
all kinds of consumed should be considered as consumed.
It sounds to me like the key binding in question isn't setting the right
consumed flag, and this stops default processing.  I think that this will
probably break using hot keys in a gtk app embedding mozilla, for example.
I tested and checked Robin's patch into the Mozilla Firebird 0.8 branch, since
this bug plagues our add bookmark dialog and Firebird won't be embedded in gtk2
apps.

I'll dig further, but it seems like for menulist menupopups, the
button_press_event callback is connected twice unlike the menubar ones. Why
should the code test for consumed events? Shouldn't they be sent only once by
gtk to the callback function?
If Mozilla hasn't consumed the event it should be passed back up the chain to
higher level windows that have a crack at it.  This is mostly for the embedding
case since internally our event dispatcher sends everything to the right node.
Dupe of bug 55495?
*** Bug 232422 has been marked as a duplicate of this bug. ***
WFM with a trunk build from tonight. Not sure why it should work now, though,
but seems like it does.
Do you still see this?
QA Contact: jrgmorrison → xptoolkit.widgets
WFM with builds back to SeaMonkey1.0.  I don't have older gtk2 builds.

resolving WFM
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: