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