Closed Bug 89958 Opened 24 years ago Closed 24 years ago

color picker behavior for last-picked color button

Categories

(Core :: DOM: Editor, defect)

PowerPC
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: Brade, Assigned: cmanske)

Details

Attachments

(2 files)

I don't like the current behavior for the color picker's "last-picked color" button. Current, when you click it, it sets the color in the edit field and sets the color swatch but the color picker stays up. I'd prefer that the color picker dismiss when I click that button. It's really not much of a short cut if I have to click so many things to get it (color picker control, last-picked button, ok button).
Design is on purpose, so you can see the color value in the edit field and possibly modify it. Note that the "Last Picked Color" is initially the default key, so all you have to do for quicker access is press Enter/Return. The quickest access to the last-picked color is Shift+click on the toolbar buttons. The text or background color is applied without even bringing up the dialog.
Being able to edit the last picked color doesn't really seem very useful (so useful to warrant requiring an extra click from users). The shortcut you describe with pressing enter/return does not seem to work. When I press return, I get the current color (like if I pressed cancel) instead of the "last picked" color. As for the "quickest" access, that is hardly quick. I wouldn't remember such a thing so I'd have to look it up which would take much longer. I don't think this shortcut is intuitive or easily discovered. We should make the last picked color button actually dismiss the dialog.
I agree, it would be better to simply close the dialog. Trivial to fix. Nominating for 0.9.3.
Status: NEW → ASSIGNED
Whiteboard: FIX IN HAND, need r=, sr=
Target Milestone: --- → mozilla0.9.3
r=mjudge
Whiteboard: FIX IN HAND, need r=, sr= → FIX IN HAND, need sr=
Per discussion with beppe, setting nsBranch.
Keywords: nsBranch
checked into trunk
Keywords: vtrunk
Whiteboard: FIX IN HAND, need sr= → fixed, reviewed
adding nsBranch+
Whiteboard: fixed, reviewed → fixed, reviewed, nsBranch+
This will not be checked into branch for NS 6.1 release.
Whiteboard: fixed, reviewed, nsBranch+ → fixed, reviewed
Target Milestone: mozilla0.9.3 → mozilla1.0
Shouldn't this bug be marked RESOLVED-FIXED? Charley says he fixed it in the trunk and its not gonna be fixed in the branch...
I just downloaded the 7/11 trunk on windows... this is not fixed. the dialog does not close after clicking on "Last-picked color"
Right, this isn't finished yet and is not nominated for 6.1 release. To fix this properly, I should modify or remove the extra code that shifts the default button (what fires when "Enter" is pressed) from "Last Picked Color" to "Ok". This will be done in next cycle.
Keywords: nsBranch, vtrunk
Whiteboard: fixed, reviewed
Charley I understand its not fixed on the branch. but its not even fixed on the trunk...see your comments above: "checked into the trunk" <---doesn't this mean that its fixed on the trunk and I should verify it on the trunk? someone also added the "vtrunk" keyword.
Yes IT IS NOT FIXED on branch or trunk. Ignore 'checked in'. I removed the 'vtrunk' keyword.
Attached patch Updated patch.Splinter Review
The "change default button" code is still useful for keyboard-only users. Updated patch simply closes the window after setting the color in the OnOK() method.
Keywords: patch, review
Whiteboard: FIX IN HAND need r=, sr=
Target Milestone: mozilla1.0 → mozilla0.9.4
r=brade
Whiteboard: FIX IN HAND need r=, sr= → FIX IN HAND need sr=
Whiteboard: FIX IN HAND need sr= → FIX IN HAND, reviewed
checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: FIX IN HAND, reviewed
Verified on 8-30 Build
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: