Closed Bug 201743 Opened 22 years ago Closed 22 years ago

cookie confirmation dialog lacks accelerators for accept/deny buttons (keyboard shortcuts, hotkeys)

Categories

(Core :: DOM: UI Events & Focus Handling, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sgranade, Assigned: dwitte)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b; MultiZilla v1.1.32 final) Gecko/20030401 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b; MultiZilla v1.1.32 final) Gecko/20030401 The Confirm dialog for accepting/denying cookies lacks accelerators. While there are accelerators for the _S_how Details and _H_ide Details buttons, there are none for the Accept and Deny buttons (nor were there for the Yes/No buttons in prior Mozilla builds). Reproducible: Always Steps to Reproduce: 1. In Preferences->Privacy & Security->Cookies, make sure that "Ask me before storing a cookie" is checked. 2. Visit a site which will set a cookie, one which you have not visited before. (For example, http://webreference.com/js/tips/020110.html) 3. The Confirm dialog will appear. The Accept and Deny buttons will lack accelerators. Actual Results: A Confirm dialog appears, but lacks any accelerators for Accept or Deny. Expected Results: In the Confirm dialog box, _A_ccept and _D_eny should have accelerators on the first letters. Chrome skin.
You can use enter and esc, a common way of closing dialogs.
Sure, but ENTER defaults to "Yes/Accept." What I want is an easy way to select "No/Deny" from the keyboard. Right now that involves a fair amount of pressing TAB or SHIFT-TAB to hilight "No/Deny". That aside, from a consistent UI standpoint, it'd be good for such dialogs to have accelerators for all of its options, not just "Show/Hide Details".
*** Bug 204311 has been marked as a duplicate of this bug. ***
Summary: cookie confirmation dialog lacks accelerators for accept/deny buttons → cookie confirmation dialog lacks accelerators for accept/deny buttons (keyboard shortcuts, hotkeys)
Verified that ESC can be used for Deny and Return/Enter for Allow in Windows. However, there aren't the normal hotkeys (and underlined letter) as there are on most menus and dialogs. Also, there's no hotkey for the "Use my choice for all cookies from this site" checkbox. I think that being able to hit a single letter will be more obvious, especially for new users. Perhaps: _A_llow _D_eny _U_se my choice for all cookies from this site Show De_t_ails Hide De_t_ails This way 'T' could be used as a toggle.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Confirmed. Pressing "Escape" does not honor the "Use my choice for all cookies from this site" checkbox. It seems to me it _used_ to, but no longer does. When I press the "Deny" button, the checkbox is honored. It's inconsistent.
>Confirmed. Pressing "Escape" does not honor the "Use my choice for all >cookies from this site" checkbox. It seems to me it _used_ to, but no longer >does. When I press the "Deny" button, the checkbox is honored. It's inconsistent. Yes, we made that change intentionally - pressing esc or closing the dialog via the 'x' button is a means of aborting the dialog, not providing a response. The solution is to provide proper default keys for the two options & checkbox.
*** Bug 208760 has been marked as a duplicate of this bug. ***
Attached patch patch v1Splinter Review
this adds accesskeys for the (A)ccept, (D)eny, and 'show/hide de(T)ails' buttons. pressing alt+key will trigger them. 'U' already exists for 'use my choice for...'. due to the buttons not having focus when the checkbox is initially displayed, just pressing the accesskey for a button (without alt) won't work. if someone has a nice solution for that, it would be handy...
oh, there is a random string change in there too, to make it consistent with the others :)
Comment on attachment 133121 [details] [diff] [review] patch v1 Neil, mind taking a look? thx!
Attachment #133121 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #133121 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #133121 - Flags: superreview?(jag)
*** Bug 220508 has been marked as a duplicate of this bug. ***
Attachment #133121 - Flags: superreview?(jag) → superreview?(alecf)
Comment on attachment 133121 [details] [diff] [review] patch v1 sr=alecf
Attachment #133121 - Flags: superreview?(alecf) → superreview+
-> me
Assignee: aaronlev5 → dwitte
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: