Closed
Bug 129746
Opened 23 years ago
Closed 23 years ago
oncommand fired for <menulist/> incorrectly
Categories
(Core :: XUL, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: hwaara, Assigned: hwaara)
References
Details
(Keywords: access)
Attachments
(1 file)
|
953 bytes,
patch
|
bugzilla
:
review+
hewitt
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
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?
| Assignee | ||
Comment 1•23 years ago
|
||
In the case of bug 129714, we get some weird values, which is how I found this
originally.
Comment 2•23 years ago
|
||
-> 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
Comment 3•23 years ago
|
||
http://lxr.mozilla.org/seamonkey/source/content/events/src/nsEventStateManager.cpp#861
Change that so it also just focuses for ::menulist.
| Assignee | ||
Comment 4•23 years ago
|
||
Attaching the fix proposed by jag. Thanks to Matti for making sure it works.
Comment 5•23 years ago
|
||
Comment on attachment 73756 [details] [diff] [review]
Fix
r=blake
Attachment #73756 -
Flags: review+
Comment 6•23 years ago
|
||
Comment on attachment 73756 [details] [diff] [review]
Fix
sr=hewitt
Attachment #73756 -
Flags: superreview+
Comment 7•23 years ago
|
||
Comment on attachment 73756 [details] [diff] [review]
Fix
sr=hewitt
Comment 8•23 years ago
|
||
Comment on attachment 73756 [details] [diff] [review]
Fix
sr=hewitt
Comment 10•23 years ago
|
||
Yep, that's exactly what I meant.
Comment 11•23 years ago
|
||
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+
| Assignee | ||
Comment 12•23 years ago
|
||
fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
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.
Description
•