搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How do I disable mouse shortcuts so the middle button on my mouse does not do anything (like closing the tab)?

more options

I don't want clicking the middle button on a tab header to close that tab. I want it to do nothing. How do I change this?

I don't want clicking the middle button on a tab header to close that tab. I want it to do nothing. How do I change this?

所有回覆 (2)

more options

Hi, how about have middle button do scrolling : https://addons.mozilla.org/firefox/addon/middle-mouse-button-scroll/

more options

deloren.lockett said

I don't want clicking the middle button on a tab header to close that tab. I want it to do nothing. How do I change this?

I'm not aware of a way to disable that action on the tab bar (there are some settings related to what the mouse wheel / middle button does in web pages). Maybe someone else is aware of a trick for it.

{Not a Solution} You probably know you can re-open the last closed tab using either:

  • Ctrl+Shift+t
  • right-click a different tab > Undo Close Tab

If the problem with those is that the entire window is closing (there's only one tab), you can set Firefox to show a new tab when you close the last tab in a window:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste tabs and pause while the list is filtered

(3) Double-click the browser.tabs.closeWindowWithLastTab preference to switch the value from true to false