Closed Bug 1699284 Opened 4 years ago Closed 4 years ago

Some accesskeys in about:preferences cannot be cycled through

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: bytesized, Assigned: edgar)

References

Details

Attachments

(4 files)

STR:

  1. Determine the correct hotkey to use an accesskey on your platform using the docs. On my platform, Windows 10, the hotkey is Alt + Shift + <accesskey>.
  2. Open about:preferences
  3. Activate accesskey e multiple times. Observe that it cycles between the controls "Enable Picture in Picture video controls" and "Settings".
  4. Activate the accesskey a multiple times.

Expected results:
There are multiple controls that use the accesskey a: The "Advanced" button in the "Font and Colors" section, and the "Always ask you where to save files" control in the "Files and Applications" section. Therefore, I would expect to cycle through them, like we do with accesskey e.

Actual results:
We do not cycle through them. We select the "Advanced" button only. As near as I can tell, other controls using the same accesskey cannot be accessed this way.

See Also: → 1699292
Assignee: nobody → echen
Severity: -- → S3
Priority: -- → P2

PerformAccesskey also handle to focus change, and it would forward the handling
to control element if it is a label element.

I will try to write a test.

Attachment #9210281 - Attachment description: Bug 1699284 - Call PerformAccesskey even if accesskey won't trigger activation; → WIP: Bug 1699284 - Delegate focus handling to Element if accesskey won't causes activation;
Attachment #9210281 - Attachment description: WIP: Bug 1699284 - Delegate focus handling to Element if accesskey won't causes activation; → WIP: Bug 1699284 - Delegate focus handling to Element if accesskey won't cause activation;

I moved nsIContent::PerformAccesskey to Element in bug 1699755, but forget to
update the comment.

Depends on D109067

Attachment #9210281 - Attachment description: WIP: Bug 1699284 - Delegate focus handling to Element if accesskey won't cause activation; → Bug 1699284 - Delegate focus handling to Element if accesskey won't cause activation;
Attachment #9211148 - Attachment description: WIP: Bug 1699284 - Update comment for PerformAccesskey; → Bug 1699284 - Update comment for PerformAccesskey;
Attachment #9211148 - Attachment description: Bug 1699284 - Update comment for PerformAccesskey; → WIP: Bug 1699284 - Part 1: Update comment for PerformAccesskey;
Attachment #9210281 - Attachment description: Bug 1699284 - Delegate focus handling to Element if accesskey won't cause activation; → WIP: Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation;
Attachment #9211148 - Attachment description: WIP: Bug 1699284 - Part 1: Update comment for PerformAccesskey; → Bug 1699284 - Part 1: Update comment for PerformAccesskey;
Attachment #9210281 - Attachment description: WIP: Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation; → Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation;
Attachment #9211242 - Attachment description: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; → WIP: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey;
Attachment #9211242 - Attachment description: WIP: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; → Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey;
Attachment #9211242 - Attachment description: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; → WIP: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey;

For example, if the target element is disabled, we could not move focus to it,
then we cycle to next accesskey target.

Depends on D109607

Attachment #9211242 - Attachment description: WIP: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; → Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey;
Attachment #9211148 - Attachment description: Bug 1699284 - Part 1: Update comment for PerformAccesskey; → WIP: Bug 1699284 - Part 1: Update comment for PerformAccesskey;
Attachment #9210281 - Attachment description: Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation; → WIP: Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation;
Attachment #9211242 - Attachment description: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; → WIP: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey;
Attachment #9211148 - Attachment description: WIP: Bug 1699284 - Part 1: Update comment for PerformAccesskey; → Bug 1699284 - Part 1: Update comment for PerformAccesskey; r=masayuki
Attachment #9210281 - Attachment description: WIP: Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation; → Bug 1699284 - Part 2: Delegate focus handling to Element if accesskey won't cause activation; r=masayuki
Attachment #9211242 - Attachment description: WIP: Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; → Bug 1699284 - Part 3: Simplify nsXULElement::PerformAccesskey; r=masayuki
Attachment #9211269 - Attachment description: WIP: Bug 1699284 - Part 4: Continue to search/try next accesskey target if current target is not focusable; → Bug 1699284 - Part 4: Continue to search/try next accesskey target if current target is not focusable; r=masayuki
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/08fd15f08503 Part 1: Update comment for PerformAccesskey; r=masayuki https://hg.mozilla.org/integration/autoland/rev/29afdc442220 Part 2: Delegate focus handling to Element if accesskey won't cause activation; r=masayuki https://hg.mozilla.org/integration/autoland/rev/d3ac5e547efe Part 3: Simplify nsXULElement::PerformAccesskey; r=masayuki https://hg.mozilla.org/integration/autoland/rev/62e36df25a9c Part 4: Continue to search/try next accesskey target if current target is not focusable; r=masayuki
See Also: 1699292
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: