How to Stop Google Chrome from Automatically Closing Tabs When Middle-Clicked

The Middle-Click Shortcut

If you use a traditional computer mouse with a scroll wheel, that wheel also acts as a third, clickable button (the “middle-click”). In Google Chrome, middle-clicking a hyperlink is incredibly useful because it forces the link to open in a new background tab. However, this shortcut has a secondary, often frustrating function: if you middle-click directly on an open tab at the top of the browser, it instantly closes that tab.

For users who rely heavily on middle-clicking links, accidentally aiming slightly too high and middle-clicking a tab will instantly destroy the webpage you were currently reading, with no warning. Unlike standard extensions or flags, Google Chrome hardcodes this middle-click-to-close behavior into the browser core, meaning there is no direct toggle switch in the settings to turn it off.

How to Prevent Tabs from Closing via Middle-Click

Because Chrome refuses to provide an off-switch, you must intercept the mouse click at the operating system level using a third-party mouse utility like X-Mouse Button Control (Windows).

  1. Download and install the free utility X-Mouse Button Control.
  2. Open the application. In the left-hand pane (Application / Window Profiles), click the Add button.
  3. Select chrome.exe from the list of running applications and click OK.
  4. With “chrome.exe” highlighted on the left, look at the right-hand pane.
  5. Find the dropdown menu labelled Middle Button.
  6. Change the action from “Nothing (Don’t intercept)” to Simulated Keystrokes.
  7. A popup window will appear. In the custom keys box, type exactly: {CTRL}{LMB}
  8. Click OK, then click Apply at the bottom right.

What did this do? You just instructed your mouse to translate every middle-click inside Chrome into a “Ctrl + Left Click.” In Chrome, holding Ctrl and left-clicking a link also opens it in a new background tab. However, holding Ctrl and left-clicking a tab at the top of the screen does absolutely nothing. You have successfully preserved your ability to open links in the background while making your tabs immune to accidental middle-click closures.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.