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

技術支援討論區

How do you close last tab with the middle mouse button?

已張貼

Closing the last tab with the keyboard shortcut exits firefox (browser.tabs.closeWindowWithLastTab is set to True), but not with the middle mouse button, though closing other tabs works.

25.0.1 windows 7

Cam

Closing the last tab with the keyboard shortcut exits firefox (browser.tabs.closeWindowWithLastTab is set to True), but not with the middle mouse button, though closing other tabs works. 25.0.1 windows 7 Cam

額外的系統細節

已安裝的外掛程式

  • Google Update
  • Next Generation Java Plug-in 10.45.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Citrix Online App Detector Plugin
  • Shockwave Flash 11.9 r900
  • VLC media player Web Plugin 2.0.6
  • GEPlugin
  • Foxit Reader Plug-In For Firefox and Netscape
  • 2.1.4
  • DivX Plus Web Player version 2.2.2.14
  • Intel web components updater - Installs and updates the Intel web components
  • Intel web components for Intel® Identity Protection Technology
  • 0.70.4
  • DivX VOD Helper Plug-in
  • Windows Activation Technologies Plugin for Mozilla

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0

更多資訊

cor-el
  • Top 10 Contributor
  • Moderator
17472 個解決方法 157915 個答案

Do you want to close Firefox with closing the last tab?

If you set browser.tabs.closeWindowWithLastTab to false then you get a close button and can close this tab, but Firefox doesn't close of course with this setting.

Do you want to close Firefox with closing the last tab? If you set browser.tabs.closeWindowWithLastTab to false then you get a close button and can close this tab, but Firefox doesn't close of course with this setting.

有幫助的回覆

I would like to keep the current functionality of closing the windows when closing the last tab via keyboard shortcut, and have it apply to closing tabs with the middle mouse button.

As it stands, middle clicking the last tab has no effect on the tab or window. other tabs close as normal.

I would like to keep the current functionality of closing the windows when closing the last tab via keyboard shortcut, and have it apply to closing tabs with the middle mouse button. As it stands, middle clicking the last tab has no effect on the tab or window. other tabs close as normal.
cor-el
  • Top 10 Contributor
  • Moderator
17472 個解決方法 157915 個答案

You can only close the last tab by setting that pref to false.
You can't have a different behavior for the mouse and the keyboard (there is a close Window shortcut key).
Otherwise you need open a new tab and drag that tab to position one to have the first tab as an empty tab.
If you really want to close the tab then best is to first close the tab and then close the window to prevent a History > Recently Closed Windows entry.

See also Help > Keyboard Shortcuts

You can only close the last tab by setting that pref to false.<br /> You can't have a different behavior for the mouse and the keyboard (there is a close Window shortcut key).<br /> Otherwise you need open a new tab and drag that tab to position one to have the first tab as an empty tab.<br /> If you really want to close the tab then best is to first close the tab and then close the window to prevent a History > Recently Closed Windows entry.<br /> See also Help > Keyboard Shortcuts