X
點擊此處開啟此網站的行動版。

技術支援討論區

How to make macOS system keyboard shortcuts work?

已張貼

I set up an "App shortcut" hotkey in macOS's System Preferences binding ⌘⇧N (command+shift+N) to "New Private Window", but it doesn't work - when I press the key combination, a new *non-private* browser window opens instead.

In the first attached image, you can see the shortcut configured in the `Shortcuts` pane of macOS' System Preferences application.

In the second image, you can see Firefox's `File` menu open, and verify that the shortcut is correctly assigned to "New Private Window", where it has replaced the default ⌘⇧P.

However, as I said above, the custom key combination doesn't work - it seems to in fact trigger the regular "New Window", which is still the default ⌘N (command+N, no shift key).

Any one know if this is a known issue, and if there are any solutions?

Using a different key combination is not useful for me, since I'm trying to switch from Chrome and have ⌘⇧N very ingrained in my behavior (I pretty much always use private windows unless I need to log in to a site or explicitly want the history saved). If I can't have ⌘⇧N then I might as well just try to adjust to the default ⌘⇧P.

The fact that executing the shortcut brings up a non-private window makes the whole thing much worse - I'm ending up using non-private windows when I think I'm using private ones :/

I set up an "App shortcut" hotkey in macOS's System Preferences binding ⌘⇧N (command+shift+N) to "New Private Window", but it doesn't work - when I press the key combination, a new *non-private* browser window opens instead. In the first attached image, you can see the shortcut configured in the `Shortcuts` pane of macOS' System Preferences application. In the second image, you can see Firefox's `File` menu open, and verify that the shortcut is correctly assigned to "New Private Window", where it has replaced the default ⌘⇧P. However, as I said above, the custom key combination doesn't work - it seems to in fact trigger the regular "New Window", which is still the default ⌘N (command+N, no shift key). Any one know if this is a known issue, and if there are any solutions? Using a different key combination is not useful for me, since I'm trying to switch from Chrome and have ⌘⇧N very ingrained in my behavior (I pretty much always use private windows unless I need to log in to a site or explicitly want the history saved). If I can't have ⌘⇧N then I might as well just try to adjust to the default ⌘⇧P. The fact that executing the shortcut brings up a non-private window makes the whole thing much worse - I'm ending up using non-private windows when I think I'm using private ones :/
附加的畫面擷圖
引用

額外的系統細節

已安裝的外掛程式

None

應用程式

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:66.0) Gecko/20100101 Firefox/66.0

更多資訊

jscher2000
  • Top 10 Contributor
8783 個解決方法 71817 個答案

Natively, Command+Shift+n is the keyboard shortcut to re-open the last closed window. To test whether it is that or something else, try loading some content into that window and then close the window before using the keyboard shortcut again.

Natively, Command+Shift+n is the keyboard shortcut to re-open the last closed window. To test whether it is that or something else, try loading some content into that window and then close the window before using the keyboard shortcut again.
這篇文章有幫助嗎? 0
引用

提出問題者

jscher2000 said

Natively, Command+Shift+n is the keyboard shortcut to re-open the last closed window. To test whether it is that or something else, try loading some content into that window and then close the window before using the keyboard shortcut again.

Thanks; I'm already aware of Cmd+Shift+n -> re-open window... the issues is that I want it to open a private window *instead*.

On a user intent level, it seems like custom shortcuts I add should take precedence, but that's not what I'm seeing.

''jscher2000 [[#answer-1229163|said]]'' <blockquote> Natively, Command+Shift+n is the keyboard shortcut to re-open the last closed window. To test whether it is that or something else, try loading some content into that window and then close the window before using the keyboard shortcut again. </blockquote> Thanks; I'm already aware of Cmd+Shift+n -> re-open window... the issues is that I want it to open a private window *instead*. On a user intent level, it seems like custom shortcuts I add should take precedence, but that's not what I'm seeing.
這篇文章有幫助嗎?
引用
jscher2000
  • Top 10 Contributor
8783 個解決方法 71817 個答案

Hi nrser, could you confirm what Command+Shift+n is currently doing with your custom key assignment in place? In other words, is your custom key assignment:

  • being completely ignored -- Firefox is following its native behavior of re-opening the last closed window
  • partially working -- it opens a new window, but of the wrong kind (this would be hard to explain)
Hi nrser, could you confirm what Command+Shift+n is currently doing with your custom key assignment in place? In other words, is your custom key assignment: * being completely ignored -- Firefox is following its native behavior of re-opening the last closed window * partially working -- it opens a new window, but of the wrong kind (this would be hard to explain)
這篇文章有幫助嗎?
引用
hongsy2006 0 個解決方法 1 個答案

This bug is tracked in Bugzilla #1333781

This bug is tracked in [https://bugzilla.mozilla.org/show_bug.cgi?id=1333781 Bugzilla #1333781]

由 hongsy2006 於 修改

這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題