Closed Bug 1328604 Opened 8 years ago Closed 7 years ago

Avoid displaying custom shortcuts next to menu items until bug 429824 is fixed

Categories

(Core :: Widget: Cocoa, defect, P2)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: spohl, Assigned: spohl)

References

Details

Attachments

(1 file)

If a user sets custom shortcuts in system preferences, these will be displayed next to menu items. However, until bug 429824 is fixed, we fail to respect these custom shortcuts. We should avoid displaying custom shortcuts next to the menu items to maintain proper state.
Attached patch Patch (deleted) — Splinter Review
Attachment #8823659 - Flags: review?(mstange)
Attachment #8823659 - Flags: review?(mstange) → review+
https://hg.mozilla.org/mozilla-central/rev/ee828e9096c7
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Stephen, I found this bug because my custom keyboard shortcut (CMD+SHIFT+, to open Nightly's "About Nightly" dialog to force a Nightly update) stopped working. But if I am reading bug 429824 correctly, my custom keyboard shortcut never should have worked?? Or is bug 429824 only about overriding a menu item's default keyboard shortcut with a custom one? My custom keyboard shortcut has worked at least since OS X 10.11 and probably earlier.
Flags: needinfo?(spohl.mozilla.bugs)
(In reply to Chris Peterson [:cpeterson] from comment #4)
> Stephen, I found this bug because my custom keyboard shortcut (CMD+SHIFT+,
> to open Nightly's "About Nightly" dialog to force a Nightly update) stopped
> working. But if I am reading bug 429824 correctly, my custom keyboard
> shortcut never should have worked?? Or is bug 429824 only about overriding a
> menu item's default keyboard shortcut with a custom one? My custom keyboard
> shortcut has worked at least since OS X 10.11 and probably earlier.

No, it should never have worked based on bug 429824 and my own testing. Keeping n-i to back this out later tonight. We need to investigate this further before we can reland, since there's obviously more going on than what we were aware of before.
https://hg.mozilla.org/integration/mozilla-inbound/rev/0d7224996287e80d2fb78ba163fd97d006a83ee4
Backout ee828e9096c7 (bug 1328604) for causing some custom shortcuts to stop working on OSX. r=backout
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla53 → ---
Now that this change has been backed out, my custom keyboard shortcut (CMD+SHIFT+, to open Nightly's "About Nightly" dialog) works again in Nightly 53 build 2017-01-16 on macOS 10.12.
After investigating and confirming with :cpeterson via IRC, the application menu correctly responds to custom shortcuts thanks to [1]. So although menu items in the regular menu bar do not yet respect custom shortcuts (bug 429824), we should not land this patch since that would also disable custom shortcut handling in the application menu (which imo would be worse than the current behavior).

[1] https://dxr.mozilla.org/mozilla-central/source/widget/cocoa/nsChildView.mm#5450
Status: REOPENED → RESOLVED
Closed: 8 years ago7 years ago
Flags: needinfo?(spohl.mozilla.bugs)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: