Open Bug 325251 Opened 20 years ago Updated 20 years ago

In labels for controls we don't call |formatAccessKey()| when value is set

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: jag+mozilla, Assigned: jag+mozilla)

Details

Attachments

(2 files)

This means that for such labels you're forced to set |value| before you set |accessKey| to trigger the formatting. In nsTextBoxFrame.cpp it triggers on both.
Actually, I faked out nsTextBoxFrame.cpp - if you have alwaysappendaccesskey set to true, and set a label to Cancel, then its access key to X, then the label to Cancel (X), then Cancel (X) is displayed, but if you set a label to Cancel (X), then the access key to X, then Cancel (X) (X) is displayed.
The code tries to optimize the attribute change but compares the wrong title.
Attachment #211284 - Flags: superreview?(bzbarsky)
Attachment #211284 - Flags: review?(bzbarsky)
Attachment #211284 - Flags: superreview?(bzbarsky)
Attachment #211284 - Flags: superreview+
Attachment #211284 - Flags: review?(bzbarsky)
Attachment #211284 - Flags: review+
Attachment #211284 - Flags: branch-1.8.1?(bzbarsky)
Attachment #211284 - Flags: branch-1.8.1?(bzbarsky) → branch-1.8.1+
This is my "quickly hacked together without thinking _too_ much" patch from right before I filed this bug. If check boxes and radio buttons aren't covered by Neil's patch I can spend some time cleaning this up.
Attachment #211309 - Flags: review?(neil)
Comment on attachment 211309 [details] [diff] [review] This is the fix I had for radio buttons and checkboxes. This is just cut & paste & search & replace of previously reviewed code, right ;-)
Attachment #211309 - Flags: review?(neil) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: