Closed Bug 120527 Opened 23 years ago Closed 19 years ago

When another button has focus, default button is still marked as default

Categories

(SeaMonkey :: Themes, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: ian, Assigned: pilgrim)

References

Details

(4 keywords)

Attachments

(1 file, 3 obsolete files)

STEPS TO REPRODUCE File | Page Setup (or any other way of getting a dialog with two buttons) Focus the Cancel button ACTUAL RESULT Windows Classic: Both buttons are marked as default button (dark outline) Modern: OK button is still marked as default EXPECTED RESULT When another button has focus, the default button should lose its default button styling since hitting Enter will not activate it.
This seems like a <dialog> issue.... should <dialog> catch focus changes and twiddle the styling accordingly on buttons?
This behavior shouldn't really be limited to dialog.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Sec508 subpart B § 1194.21 (c): "A well-defined on-screen indication of the current focus shall be provided that moves among interactive interface elements as the input focus changes."
Severity: minor → normal
Keywords: sec508
Keywords: access
selected buttons: taskbar: cancel mozilla: help explorer: restore defaults default buttons is ok in all three dialogs notice that no button appears to be the default button in folder options, this is because the dialog is not active. notice that preferences (also not active) paints two buttons as default (it should paint zero as default, since it isn't active) supposing preferences were active, it should behave like the run dialog, only one button can be default, and if a button is selected, that button is default and the default default reverts to normal button status. when i activate the folder options dialog, the only default/selected button would be restore defaults, ok is just be a normal button.
Keywords: sec508
*** Bug 255860 has been marked as a duplicate of this bug. ***
Is anyone working on this at all? 2 years inactive, and it's still a minor annoyance in the latest Firefox.
davemilford@gmail.com: of course not, are you volunteering?
Assignee: hewitt → themes
Status: ASSIGNED → NEW
QA Contact: pmac
If I could, I would. I've got plenty of experience with C++, but not with Mozilla or XUL. And I wouldn't know where to start. And I'm not sure if I need to get permission from my employer to work on the project at all (probably not, as it's IBM). My hunch is this would be a rather trivial thing for someone to fix if they were familiar with the code.
*** Bug 196945 has been marked as a duplicate of this bug. ***
*** Bug 254472 has been marked as a duplicate of this bug. ***
Attached patch Proposed patch (obsolete) — Splinter Review
Assignee: themes → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Attachment #191480 - Flags: review?(aaronleventhal)
Comment on attachment 191480 [details] [diff] [review] Proposed patch I'm not a peer but the code looks okay to me.
Comment on attachment 191480 [details] [diff] [review] Proposed patch non-peer r= for the accessible-ness of it.
Attachment #191480 - Flags: review?(aaronleventhal) → review+
Attachment #191480 - Flags: superreview?(jag)
Attachment #191480 - Flags: review?(mconnor)
Attachment #191480 - Flags: superreview?(jag) → superreview+
Comment on attachment 191480 [details] [diff] [review] Proposed patch This has to be #ifdefed out on OS X.
Attachment #191480 - Flags: review-
Comment on attachment 191480 [details] [diff] [review] Proposed patch r=me with Mano's comment addressed
Attachment #191480 - Flags: review?(mconnor)
Attachment #191480 - Flags: review-
Attachment #191480 - Flags: review+
Do we have a separate bug for HTML, for darkening the border of the submit button case? For example, on Google, the default button has a darkened border in IE and Opera, but not in Firefox -- even when another button isn't focused.
Attached patch Updated for Mac (obsolete) — Splinter Review
Attachment #191480 - Attachment is obsolete: true
Attachment #196640 - Flags: review?(bugs.mano)
(In reply to comment #16) > Do we have a separate bug for HTML, for darkening the border of the submit > button case? For example, on Google, the default button has a darkened border in > IE and Opera, but not in Firefox -- even when another button isn't focused. I looked and looked but couldn't find it.. the closest I could get to was bug 102057. I've never paid attention to this problem before to be honest but it does seem very inconsistent! Can you file the bug ?
Comment on attachment 196640 [details] [diff] [review] Updated for Mac >Index: toolkit/content/widgets/dialog.xml >=================================================================== > #ifdef XP_MACOSX > <handler event="keypress" key="." modifiers="meta" phase="capturing" action="this.cancelDialog();"/> >+#else >+ <handler event="focus" phase="capturing"> >+ var btn = this.getButton(this.defaultButton); >+ if (btn) >+ btn.setAttribute("default", !(event.originalTarget instanceof Components.interfaces.nsIDOMXULButtonElement)); >+ </handler> >+ </handlers> > #endif > </handlers> <handlers> is closed outside of the #ifdef. r=mano with that fixed.
Attachment #196640 - Flags: review?(bugs.mano) → review+
(In reply to comment #18) > (In reply to comment #16) > > Do we have a separate bug for HTML, for darkening the border of the submit > > button case? For example, on Google, the default button has a darkened border in > I looked and looked but couldn't find it.. the closest I could get to was bug > 102057. I think that is the bug we were looking for.
Attached patch Patch for check in (obsolete) — Splinter Review
Attachment #196640 - Attachment is obsolete: true
Comment on attachment 196801 [details] [diff] [review] Patch for check in mozilla/toolkit/content/widgets/dialog.xml 1.26 mozilla/xpfe/global/resources/content/bindings/dialog.xml 1.35 followup: mozilla/xpfe/global/resources/content/bindings/dialog.xml 1.36
Attachment #196801 - Attachment is obsolete: true
Comment on attachment 196801 [details] [diff] [review] Patch for check in a=me for SM1.0b on SM only part of code, one more needed
(on the xpfe/ part. and with the followup included)
SeaMonkey-only portion of patch checked in to the 1.8 branch.
Whiteboard: fixed-seamonkey1.0
Sounds like this is fixed. Shouldn't it be closed now?
Comment on attachment 196801 [details] [diff] [review] Patch for check in Asking for 1.8.1 approval for the toolkit part.
Attachment #196801 - Attachment is obsolete: false
Attachment #196801 - Flags: branch-1.8.1?(mconnor)
Attachment #196801 - Flags: branch-1.8.1?(mconnor) → branch-1.8.1+
Comment on attachment 196801 [details] [diff] [review] Patch for check in mozilla/toolkit/content/widgets/dialog.xml; new revision: 1.25.2.1;
Attachment #196801 - Attachment is obsolete: true
Whiteboard: fixed-seamonkey1.0
Assignee: neil → pilgrim
Status: ASSIGNED → NEW
Whiteboard: [checkin needed]
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: