Closed Bug 2086303 Opened 14 days ago Closed 1 day ago

about:keyboard shows "(cannot be changed)" instead of "(set in macOS keyboard settings)" for unchangeable shortcuts assigned in System Settings

Categories

(Firefox :: Keyboard Navigation, defect)

All
macOS
defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox161 --- wontfix
firefox162 --- fixed

People

(Reporter: spohl, Assigned: spohl)

References

(Depends on 1 open bug)

Details

Attachments

(2 external files)

On macOS, a shortcut can be assigned to a Firefox menu item in System Settings (bug 1333781). about:keyboard then shows "(set in macOS keyboard settings)" below the action, but for the shortcuts it marks as unchangeable (Undo, Redo, Cut, Copy, Paste, Select All, Settings, Hide, Quit and Minimize) it keeps showing "(cannot be changed)" instead, while the shortcut column shows the assigned shortcut.

Steps:

  1. In System Settings > "Keyboard" > "Keyboard Shortcuts…" > "App Shortcuts", assign a shortcut to "Settings…" for Firefox Nightly.
  2. Open about:keyboard and find "Settings".

Expected: "(set in macOS keyboard settings)" below "Settings", as for other shortcuts assigned in System Settings.
Actual: "(cannot be changed)".

about:keyboard should show where the shortcut comes from for these shortcuts too. Found by QA while testing bug 1333781 (QA-5854).

The built-in shortcuts of Undo, Redo, Cut, Copy, Paste and Select All are handled in ShortcutKeyDefinitions.cpp, because their key elements, or the commands those point to as in the Library window, are internal. So rewriting the key element did not stop them, and both the assigned and the built-in shortcut worked. While another shortcut is assigned to such an item, the menu bar now stops its built-in shortcut, so the key does nothing.

(Trying to add a QA whiteboard tag to have this picked up as part of QA-5854 test coverage. Monica, please adjust if I didn't do this right. Thank you!)

QA Whiteboard: [QA-5854]
Flags: needinfo?(mchiorean)
See Also: → 2086600

Removing the NI from me as I mentioned to Stephen on slack, that the treeherder build did not worked for me.

Flags: needinfo?(mchiorean)
Pushed by spohl@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/88f3f904f443 https://hg.mozilla.org/integration/autoland/rev/d093f5bc7b3c Show "(set in macOS keyboard settings)" in about:keyboard for unchangeable shortcuts assigned in System Settings. r=Jamie https://github.com/mozilla-firefox/firefox/commit/cd8b1382296c https://hg.mozilla.org/integration/autoland/rev/8babe70ccb9c Make a shortcut assigned in System Settings replace the built-in shortcut of internal menu items. r=Jamie,mac-reviewers,bradwerth
Status: ASSIGNED → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

The patch landed in nightly and beta is affected.

:spohl, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox161 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D337342, D337857.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)

I don't believe that this needs to be uplifted and can probably ride the trains.

Flags: needinfo?(spohl.mozilla.bugs)
Depends on: 2091722
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: