It’s annoying as all get out – you’re just in the middle of something – whether it be composing an email, or a really great rebuttal online – and you go to hit Command+A to select all, or Command+W to close a tab, but you accidentally hit Command+Q (CMD-Q) instead, and lose it all in the blink of an eye. Argh! Here’s how to disable Command Q on your Mac to stop it from closing your programs.
There are a couple of different ways that you can disable Command Q on your Mac.
You can do it natively, by remapping Command Q for (and only for) one given program at a time.
For example, to disable Command Q so that it doesn’t accidentally close your mail program, you would do this:
|We know you're sick of ads on websites. But we still need to pay to keep the lights on for you. So instead of huge ads and video ads, we use smaller, plainer ads. Still, if you'd like to support the Internet Patrol but not the ads, please consider supporting us here:|
Go to the Shortcuts section, and click on App Shortcuts
Click on the + sign to add a keyboard shortcut
Click on the dropdown menu where it says ‘All Applications’. You’ll be tempted to try to remap Command Q for All Applications, but you can’t. You have to do it on an app by app basis.
On the dropdown, scroll down and select ‘Mail’
In the Menu Title box, type a command found on one of the Mail menus. Type it exactly as it appears on the menu. For our example we picked ‘Reply’. Then go to the Keyboard Shortcut box and execute the key command sequence. For this example, you will hold down the Command key and the Q key, to tell your computer to remap Command Q to mean ‘Reply’ instead of ‘kill the app’.
Then click on ‘Add’.
Now whenever you hit Command Q while in your Mail app, instead of quitting Mail, it will fire up a reply, which will remind you “You hit Command Q by accident, you dummy.”
BUT – it will only do this in the Mail app. If you want to do it for, say, your browser, you will have to go through those same steps all over again. Lather, rinse, repeat, for every single app that you want to protect from your accidentally quitting it.
If you want to take care of that pesky Command Q problem once and for all (and we do mean all), you can download this nifty app that we found.
|Get notified of new Internet Patrol articles for free!
|Or Read Internet Patrol Articles Right in Your Inbox!
as Soon as They are Published! Only $1 a Month!
Imagine being able to read full articles right in your email, or on your phone, without ever having to click through to the website unless you want to! Just $1 a month and you can cancel at any time!
It’s called Karabiner, but before you go running off to download it, in your excitement at finally vanquishing Command Q universally, read on.
The most current version of Karabiner, for OS X 10.9 and later, uses something called Sparkle, and whether that was the problem or not, whenever we tried to install Karabiner on our test Mac, which is running a later version of OS X, it just hung during the install. We tried three different times, and it hung each time.
But when we downloaded the previous iteration of Karabiner, then known as KeyRemap4MacBook, for earlier versions of OS X (we downloaded the one for 10.6, 10.7, and 10.8) it installed and ran perfectly!
All of the versions are on one download page here.
Now, this program is a powerful program with a ton of options. So that you don’t get lost in the weeds, here is how to use it to disable Command Q:
The first thing you will want to do when you open the program is go to the bottom of the window and click “Close All”, because otherwise the dizzying array of options will make your eyes glaze over (unless you’re a hardcore geek, in which case it will make your heart go pitter-pat).
Find the section called ‘Custom Shortcuts’
In the Custom Shortcuts section, you will see three options for the Command+Q combination:
1. Change it (remap it) to Command+Shift+W (which closes a window instead of the whole app) and at the same time remap Command-Shift_L+Q to be Command+Q
2. Keep it as Command+Q but require a long-press (hold the keys down) for a certain period of time in order for it to take effect
3. Keep it as Command+Q but for it to work you have to do it twice
We chose the second option, because we don’t want to accidentally close a window either (option #1), and because we could see ourselves simply hitting it twice (option #3) because the Command+A that we thought we were hitting wasn’t working, so we would hit it again.
If you select the second option, as did we, you will need to then go to the Key Repeat section, and find the ‘Holding Key to Key’ section, to adjust the ‘holding threshold’ – in other words, how long of a long-press do you need – do you have to hold down that combination of Command+Q – in order to activate it?
The time period is milliseconds (‘ms’), so 1000 represents one second. As we never want to use Command+Q here, we made the threshold nice and long: 5000 milliseconds, or 5 seconds.
Of course, once you’re in the program, you may want to check out all of the other options (or, you may not). But now you know how to disable your Command+Q combination.
By the way, the creator of Karabiner, and KeyRemap4MacBook before it, Takayama Fumihiko, has made these available for free. On the Karabiner / KeyRemap4Macbook page, however, he does have a place where you can contribute a donation if you feel like it. We felt like it, and we hope that you will too. If this saves you from losing something through the accidental quitting of a program even once (and you know it will – or you probably wouldn’t have read this far), we think that it’s worth it.
No Paywall Here!
The Internet Patrol is and always has been free. We don't hide our articles behind a paywall, or restrict the number of articles you can read in a month if you don't give us money. That said, it does cost us money to run the site, so if something you read here was helpful or useful, won't you consider donating something to help keep the Internet Patrol free? Thank you!
|Get notified of new Internet Patrol articles!