Closed Bug 129746 Opened 23 years ago Closed 23 years ago

oncommand fired for <menulist/> incorrectly

Categories

(Core :: XUL, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: hwaara, Assigned: hwaara)

References

Details

(Keywords: access)

Attachments

(1 file)

I first encountered this in bug 129714. Basically, what we have is a label, that's mapped to a menulist: <label ... control="aControl" accesskey="b"/> <menulist id="aControl" oncommand="doSomething();">...</menulist> doSomething(); will be triggered, when the label's accesskey is fired. Even if it's just a focus event. Bug or feature?
In the case of bug 129714, we get some weird values, which is how I found this originally.
-> me Shouldn't be too hard to fix, basically there's some code there in nsEventStateManager that currently checks to see whether the element is a textbox, and if so it only focuses. Menulists should probably get the same behaviour. Aaron?
Assignee: hyatt → jaggernaut
Keywords: access
Attached patch FixSplinter Review
Attaching the fix proposed by jag. Thanks to Matti for making sure it works.
Comment on attachment 73756 [details] [diff] [review] Fix r=blake
Attachment #73756 - Flags: review+
Comment on attachment 73756 [details] [diff] [review] Fix sr=hewitt
Attachment #73756 - Flags: superreview+
Comment on attachment 73756 [details] [diff] [review] Fix sr=hewitt
Comment on attachment 73756 [details] [diff] [review] Fix sr=hewitt
-> me
Assignee: jaggernaut → hwaara
Blocks: 129714
Yep, that's exactly what I meant.
Comment on attachment 73756 [details] [diff] [review] Fix a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #73756 - Flags: approval+
fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: