Free Wednesday gift for you lucky lot: Extra mouse button!
- Reference: 1688560388
- News link: https://www.theregister.co.uk/2023/07/05/mouse_button_101/
- Source link:
Back in prehistory when UNIX workstations first gained mice, the standard rodent had three buttons, with three different functions. Apple famously stripped this down to just a single button, and when the budget GUIs came to the mass market – thanks to the Atari ST, Commodore Amiga, and the original [1]Microsoft Mouse – hoi polloi got just two buttons.
That all changed the same year we got the taskbar and the Start menu. Back in 1995, the Genius version didn't catch on, but the next year, the Microsoft Intellimouse took wheel-mice [2]mainstream . The big secret is this: your scroll wheel is also a button . Hold your finger on it, keep it still, and press it down, and you'll discover it clicks. The wheel is the original third button.
A blue Microsoft mouse
And because that third button goes all the way back to [3]the 1970s and the Xerox Alto , it still does stuff. How much it does depends on what operating system you have, but there are ways around that as well. Trackpad users need not despair – there are workarounds for you too.
One basic function is pretty much universal: it works on all mainstream web browsers, on Windows, on macOS, and on Linux. The middle mouse button is for manipulating tabs. Middle click on a link, and it will open in the background, so it doesn't interrupt what you're reading and you can come back to it later. But that's not all. In the browser's tab bar, a middle click on a tab closes it, and a middle-click on an empty area of the tab bar opens a new, empty tab.
[4]
The second handy function, which The Reg FOSS Desk does dozens of times a day, is Linux-only by default, but the good news is that it can readily be brought to Windows. If you middle click on the title bar of a window, it sends it to the back, behind all other windows. It's quicker and less disruptive than minimizing and then restoring it, or temporarily moving it out of the way: You can temporarily shove a window to the back, to access something that was underneath it, and then with a second middle click, put that window behind your first one.
[5]
[6]
Corporate drones cursed to suffer Windows and without so much as an admin account, do not despair! As we [7]mentioned last year , a handy free tool called [8]Taekwindow brings this functionality to Windows, and you don't even need to install it. Simply running it is enough. It has a bunch of other functions as well, such as the ability to drag any part of a window – not just the title bar – by holding down the alt key, but we find that we don't use those nearly as often.
[9]Logitech, iFixit to offer parts to stop folks binning their computer mouse
[10]The end of Microsoft-brand peripherals is only Surface deep
[11]Techies all GUI-eyed as Xerox says goodbye to Palo Alto Research Center
[12]Apple releases Lisa source code on landmark machine's 40th birthday
[13]The Stonehenge of PC design, Xerox Alto, appeared 50 years ago this month
(This, incidentally, is one of the many things that we don't like about GNOME's "CSD" ersatz title bars: they mostly don't respond to the middle click with the correct behavior. But then, the GNOME developers don't even want you to be able to minimize, and by default remove even that basic functionality.)
We have yet to find a way to reproduce the send-to-back behavior on macOS, but if anybody has found a way, do please let us know. Modern versions of macOS don't even have a gesture for middle clicking, although this being the Apple market, there's a paid [14]add-on app to restore it. It's cheap, but there's also an [15]open source equivalent which costs nothing at all. If you are lucky enough to have a trackpad with two physical buttons, on many OSes you can press both at once to simulate a middle click. ThinkPad owners can feel smug at this point as they do get three physical mouse buttons. For this vulture, that alone is reason enough to favor ThinkPads wherever possible. This functionality really is that useful.
The third handy [16]function of your middle mouse button is one that's restricted to Linux users, and we haven't found a way to bring it to other operating systems yet. Ordinary vanilla Linux desktops have two separate ways to copy and paste text: one via the clipboard, like on any other OS, and the other via the middle mouse button. Simply select some text in any program, switch to a different window, point where you want it to go and middle click. Presto, the selected text is inserted at that position. What makes this invaluable is that it's in addition to the system clipboard. So you can copy some text the usual way, press Ctrl-C to put it in the clipboard, and then select something else, switch windows, middle click to insert the selected text, and then press Ctrl-V to paste the clipboard contents. For example, you can copy a URL to the clipboard, then select the link text, switch to another window, middle click to insert the link text, format it as a hyperlink, and then press paste to insert the destination URL – all in a single operation, without switching windows twice.
[17]
We've seen [18]one or [19]two slightly clunky workarounds on Windows which can paste the clipboard contents with a middle click – but you still have only a single clipboard, so you don't get to paste two different things in one operation, Linux style.
So there you go: an extra mouse button that you might not even realize you had, and a bunch of genuinely useful things that you can do with it. Go forth and click that wheel. ®
Get our [20]Tech Resources
[1] https://www.neowin.net/news/a-look-back-at-the-first-microsoft-mouse-released-nearly-40-years-ago/
[2] https://blog.codinghorror.com/meet-the-inventor-of-the-mouse-wheel/
[3] https://www.theregister.com/2023/03/16/the_xerox_alto_50_years/
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/personaltech&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZKWToK6409qwZ1iR@LX@fAAAAYo&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/personaltech&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZKWToK6409qwZ1iR@LX@fAAAAYo&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/personaltech&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZKWToK6409qwZ1iR@LX@fAAAAYo&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[7] https://www.theregister.com/2022/02/04/friday_foss_fest_taekwindow/
[8] http://taekwindow.net/
[9] https://www.theregister.com/2023/05/17/logitech_teams_up_with_ifixit/
[10] https://www.theregister.com/2023/04/28/the_end_of_microsoft_peripherals/
[11] https://www.theregister.com/2023/04/25/xerox_parc_goodbye/
[12] https://www.theregister.com/2023/01/21/apple_lisa_source_code_release/
[13] https://www.theregister.com/2023/03/16/the_xerox_alto_50_years/
[14] https://middleclick.app/
[15] https://github.com/artginzburg/MiddleClick-Ventura
[16] https://everydaylht.com/howtos/desktop/middle-click-paste/
[17] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/personaltech&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZKWToK6409qwZ1iR@LX@fAAAAYo&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[18] https://www.highrez.co.uk/downloads/XMouseButtonControl.htm
[19] http://fy.chalmers.se/~appro/nt/TXMouse/
[20] https://whitepapers.theregister.com/
Re: RISC OS always used three buttons
RiscOS is where I started with computers and man was that UI good and consistent, a level of consistency Windows, OSX and Linux could only dream of. The middle click menu in all applications was a joy. You can imagine my despair when my parents bought a PC and I had to do ungodly things like click toolbar buttons and go to the top of an application for the bloody menu as well as hold shift and ctrl. A single mouse button shows nothing but contempt for your users especially when you then put the charging usb port on the bottom.
Re: RISC OS always used three buttons
"RISC OS always used three buttons "
As did some of the earlier home computers if you added one of the third-party mouse solutions to them - by the time I got my hands on an Archimedes mouse (at my mates house), I'd already learned the dark arts of mouse-based UIs courtesy first of the AMX Mouse he'd bought for his earlier Model B Beeb, and then the one I bought myself for my Spectrum.
I'm ashamed to say I didn't know or had forgotten about the browser functions!
It's not entirely accurate - middle button title bar click appears to only open a tab on Firefox, not Chromium or Edge, but the other functions work. Thanks for that, it's very useful!
This is despite the fact my usual browsing box runs FreeBSD, so middle button pasting is the norm. I probably should refresh myself on shortcuts.
The title bar click to send it to the back must be window manager/compositor specific. It does nothing here on the Wayland labwc compositor.
In the If I Ruled The World camp, the old CUA shortcuts of ctrl insert, shift insert, and shift delete would work everywhere.
Re: I'm ashamed to say I didn't know or had forgotten about the browser functions!
> It's not entirely accurate - middle button title bar click appears to only open a tab on Firefox, not Chromium or Edge
It does work on Linux Vivaldi. Can't say anything about other Chromium-based browsers.
Two better than one
The middle-mouse-click paste is one I use all the time.
It is brilliant to have two directly available copy/paste buffers. One on the mouse-select/middle-click and the other on keyboard ^C/^V (or Ctrl-Shft-C/Ctrl-Shft-V in the terminal). Fortunately, most applications and frameworks honour this distinction. It makes my life a lot easier.
Re: honour this distinction
Indeed, but then some (usually ^c^v focused ones) honour it so much they refuse to (or are too ignorant to) support the middle button one. And as an inveterate mouse-paster, it is a tad annoying to have to use the keyboard for something that otherwise would be so simple ....
Re: Two better than one
They have been around for a long time. A big advantage is that the two have different lifetimes.
The first is called the Primary Selection. It is an X-Windows feature that, as far as I know, has been around as long as X. It is quick and easy to use (no keystrokes required) but it is very short term as it is replaces every time you highlight something (which is also quite easy to do by mistake). By the way, there used to be a Secondary Selection as well, but I am not sure that that exists in any modern X-Windows implementations.
The alternative came, as far as I know, from Windows (or did it come from Mac/Lisa/NeXT?). It is the clipboard. Normally used using keystrokes (^C/^V) or using menu options (Copy/Cut/Paste). It has the advantage of being longer-lived - unlikely to disappear by mistake.
Having the two, with different lifetimes, is often useful: you can copy a block of text to the clipboard, then do things to it using the Primary Selection, then paste the original text again and change it around differently, and keep doing that. Useful when using boilerplate in a document.
Windows supports 5 buttons
The Windows operating system has a concept of Left, Right, Middle, XButton1, XButton2, Wheel up / down / left / right
No drivers are required to support these inputs. I forget whether XB1 and XB2 do anything by default (Most mouse utilities will map them to browser back / forward)
AutoHotkey on windows will allow you to map them to pretty much whatever you want without the need for the OEM specific mouse software.
Any buttons you may have on your mouse beyond that will need OEM-specific software to use them
Re: Windows supports 5 buttons
" I forget whether XB1 and XB2 do anything by default (Most mouse utilities will map them to browser back / forward)"
Yes - so useful - these also work as back / up folders.
Only ever used the middle button on CDE desktop on Solaris!
Most half decent mice and trackballs have 5 buttons minimum, some expensive gaming mice will have 7-9 buttons. Someone gave me a gaming mouse once, wireless and led rainbows, have replacement parts held in with magnets and 9 assignable buttons and 2 scroll wheels! I found it so stupid it gave it away to someone still fully boxed. 2 buttons and a wheel is all I need on my trackball.
Unix seems to be the only window system that encourages use of the middle clicker hidden under the wheel, you never use it on MSWindows and Apple you just get used to 2 buttons and an wheel doing everything.
Re: Only ever used the middle button on CDE desktop on Solaris!
Once you've used a mouse with bark/forward buttons, you'll never want to use a three button mouse ever again.
Re: Only ever used the middle button on CDE desktop on Solaris!
Once you've used a mouse with bark/forward buttons,
You use your mouse to intimidate folks by barking at them? I need this mouse button.
Re: a mouse with bark/forward buttons, ...
Er, I think you'll find that's usually known as a "dog".
.
HTH :-)
"The second handy function, which The Reg FOSS Desk does dozens of times a day, is Linux-only by default, "
OK, I'll bite. which window managers does it work / not work in?
Ive been a cinnamon user for a few years and its always worked there. It also works on KDE Plasma, XFCE, Mate, lxde/lxqt and used to work on Gnome before all the CSD bullshit came along. Now its hit and miss on Gnome
Where does it work ?
I use Mate (under Debian) - works for me.
Another Linux trick
Most terminals allow Shift+Insert to work the same as middle button pasting, but falls back to clipboard pasting if nothing is selected. This is great if you forget that Ctrl+V doesn't paste but Ctrl+Shift+V does, and that's an acrobatic combination to press. And unlike graphical interfaces, terminals don't combine selection and insertion points so you can select in one place and paste somewhere else in the same window in more or less one operation. In addition to double-clicking to select a word there is also triple-clicking to select a line, so now you can copy and paste an entire line with the mouse in vim without having to learn the unholy key combinations that it insists on.
shift-insert for paste
For Linux users: As clicking the wheel tends to rotate it a bit (which messes things up) you can use shift-insert to paste. Apparently very few people know this.
I have long looked for a mouse that has a non-wheel middle key, found zilch. Why the heck does nobody build one?
Re: shift-insert for paste
MrXonTR faster by 2 minutes, dammit.
The big secret is this: your scroll wheel is also a button.
I presume Liam's granny has been given at least a year long course in ovule osculation.
Two more that work in Windows 10
Middle-click on any icon in the Task Bar and you get a new window for that app.
Hover over an active task then middle-click on the pop-up preview window above the icon to close that window.
It still amazes me that people don't know that the wheel is a button, the number of times people ask me how I opened a link in a new tab without right-clicking is unbelievable given I work in IT.
Disappointing as well that forward and back buttons positioned for the thumb on the mouse are becoming a rarity as well IME.
At least some wheelie mice support moving the scroll wheel left and right, giving you 5 buttons on a "two-button" mouse.
RISC OS always used three buttons
The left, for choosing stuff or making things happen.
The middle one, for calling up the menus.
The right one, often the opposite of what the left button did (which meant one didn't need to do weird things like clicking while holding Ctrl to modify selections).