Remapping keybinding not workin in Firefox for MacOS (mojave) [duplicate]

I created the shiftcommandn shortcut for Firefox in Syst Prefs to match other browsers' behavior.

syst prefs

It registers in the Firefox Menubar.

menubar

But pressing the shortcut opens a new non-private window, and it loads there the first item in my "Top Sites".

I imagine I could create another shortcut to override this behavior, but what is this behavior? I don't see anything highlighted in the Firefox Menubar when I hit the shortcut. Or might there be another solution (other than using a different shortcut to open new private windows)?

Problem exists on both Mojave and High Sierra. Default Firefox shortcut (shiftcommandp) still opens a new private window.


This has been a known Mac Firefox bug for years and years. Because Firefox is not truly a native macOS app, it carries over odd behaviors, one of which being that you cannot fully override its pre-defined keyboard shortcuts.

Firefox 55 addressed this partially as Mozilla bug #429824, which allowed new keyboard shortcuts to be created via System Preferences. Overriding existing shortcuts like "New Private Window" or "Paste" or whatever is still not completely possible, but progress (or lack thereof) is being tracked by Mozilla bug #1333781. In any case, you get all sorts of weird, undefined behavior if you try to override those shortcuts anyway.

Before the great extension purge in Firefox 57, Firefox extensions like keyconfig let you work around the problem by remapping those shortcuts within Firefox itself. After Firefox retired all legacy extensions, this once again became impossible.

Since Firefox 57 (being so annoyed by some of its default, un-Mac-like shortcuts) I've compiled Firefox from source code just so I could patch its keyboard shortcut configurations. Not something I'd recommend to most people, but it is one potential workaround until the bug is fixed upstream.