Change middle-click behavior in Notepad++?
-
My laptop’s touchpad has three buttons. In Notepad++, the middle one closes open file tabs. I find this behavior frustrating and I’m wondering if I can change it. Thanks in advance for any suggestions!
-
Hmmm…is it documented anywhere that a middle mouse button closes a tab? Since I have NEVER in almost 30 years of computing used a 3-button mouse (or a touchpad with that)…do you have to be pointing at the tab to close it, or will it close if your mouse cursor is anywhere within the editing area of a tab’s window? That latter thing may be annoying as it could accidentally happen…
-
I’m wondering if I can change it.
Normally such mice come with a driver configuration software or use the standard windows mouse applet to let the user configure its behavior.
-
@Alan-Kilborn said:
Since I have NEVER in almost 30 years of computing used a 3-button mouse (or a touchpad with that)…do you have to be pointing at the tab to close it, or will it close if your mouse cursor is anywhere within the editing area of a tab’s window?
I believe I had one at one point, but could be wrong. I currently have a two-button-plus-scroll-wheel, and the wheel is clickable. If I middle-click (ie, click the scroll wheel) in the main editor, nothing happens, so that’s good. If I middle click anywhere on that file’s tab in the tabbar, it will close that tab – it does, however, ask me to save any changes first, and I can cancel at that point; if the file was already saved, then it will close without a prompt, so I can confirm similar behavior to the OP.
If @Brian-Bowers has a saved file that accidentally gets closed, he can re-open it quite quickly using File > Restore Recent Closed File (which either has a keyboard shortcut, or can be assigned one in the Shortcut Mapper)