Closed Bug 55305 Opened 24 years ago Closed 21 years ago

[FIX][MF]keypress events doesn't bubble on html select elements

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: maren, Assigned: rods)

References

Details

Attachments

(4 files)

F-keys (F1-F12) doesn't bubble properly on html select elements, as compared to
normal html or xul elements.

Verified on 
"Mozilla/5.0 (X11; U; Linux 2.2.14-5.0 i686; en-US; m18) Gecko/20001002"
And a nightly from 2000-09-15.
Is this broken only on Linux or is it broken across all Platform/OS?
Reporter is this still a problem in the latest nightlies?
maren@lysator.liu.se - could you please update the instructions for this test 
case (assuming the bug still exists) in light of the jar-ification of chrome?

Gerv
I tried the testcase and nothing was dumped. But, what is really supposed to
happen? Reporter could you tell us what exactly should happen? The visual
effects I mean.
Thank you,
Fabian.
Marking INVALID due to lack of response. Reopen if this is still a problem.
Whoops didnt change it..Marking invalid again..sorry for the spam
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Attached file Updated test-case
Verified on linux with latest nightly (2000-12-15). 
(See the xul file for installation details.)
 
Fabian: When pressing the two different elements one xul:button and one
html:select and thus focusing them, and then pressing F-keys (F1-F12) Mozilla
should print out (in the console) what key was pressed. (As defined in the
keyset).

I'm downloading a Mozilla nightly for windows now and will post the results
later.

(Sorry for being such a lazy bum ;)

Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Verified on Windows 2000 with latest nightly. 
Remember that only F3 and F12 is mapped in the keyset, so you only get output
for those in the console.
Marking NEW as per comments.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Now I've gone through nsListControlFrame.cpp and I've seen the problem.
Apparently we patch away *all* bubbling not caring whether we actually handle
the incoming key-event or not.
However, letting all events bubble produce seems bad as well, so my suggestion
is to let all key-events we don't handle bubble up.
If anyone wants, I could make a patch for this.
Sure, make the patch. All help is welcome.
Status: NEW → ASSIGNED
Summary: F1-F12 events doesn't bubble on html select elements → [FIX][MF]F1-F12 events doesn't bubble on html select elements
I have some other patches sitting in my tree and I am going to try to get this 
in soon.
Target Milestone: --- → mozilla0.9.1
QA Contact Update
QA Contact: bsharma → vladimire
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Target Milestone: mozilla0.9.3 → mozilla0.9.4
I tested this, and keypress events dont bubble through selects, not only the
function keys.
Summary: [FIX][MF]F1-F12 events doesn't bubble on html select elements → [FIX][MF]keypress events doesn't bubble on html select elements
oh, and this was happening on windows 98, marking OS all
OS: Linux → All
Target Milestone: mozilla0.9.4 → mozilla0.9.5
moving to 0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
*** Bug 103852 has been marked as a duplicate of this bug. ***
Moving to Future
Target Milestone: mozilla0.9.6 → Future
Priority: P3 → --
Attachment #20742 - Attachment mime type: text/xul → application/vnd.mozilla.xul+xml
Attached file Testcase
This exercises the code this bug was patching (ListControlFrame).
And if that patch fixed this bug, it worksforme (note that code inspection shows
that the PreventBubble call in question has been long removed).
Status: ASSIGNED → RESOLVED
Closed: 24 years ago21 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: