SEARCH

How-To Geek

How to Change the Cmd+Q Shortcut Key in OS X (to Stop Accidentally Closing Apps)

image

If you’ve spent any time using Mac OS X, you’ve figured out that the Cmd+W shortcut key closes a window or tab, while the Cmd+Q key quits the entire app. The problem? The keys are right next to each other, and way too easy to accidentally hit! Here’s how to change it.

This problem is compounded even more when you’re using an application like Google Chrome, Safari, or Firefox, where you’re opening or closing tabs all the time, and probably using the Cmd+W key to close just the current tab. If you aren’t careful, you’ll accidentally hit Cmd+Q instead, and your entire browser gets closed.

Remapping the Cmd+Q (Or Any) Shortcut Key

Open up the System Preferences window, and then head down into Keyboard.

System Preferences

Now switch to the Keyboard Shortcuts tab, and then click the little plus symbol at the bottom of the window.

Keyboard

Select the application you’re going to remap the key for, type in the Exact title of the menu item into the Menu Title box, and then customize the keyboard shortcut to something that you’d like it to be.

System Preferences-1

Once you click the Add button, the change will be immediate—head back to the other application and look at the menu, where you’ll see the new key is in effect.

image

Unfortunately, you’ll need to customize this for each application separately, but at least it’s not that hard. In my case, there was really only one or two applications to bother with.

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 12/29/10

Comments (4)

  1. Migabri

    well…. i have to say that i have ever used ctrl+q and ctrl+w without errors… ;)

  2. Chappers

    Having recently started using OS X, the shortcut I’d recommend adding to Chrome would be F5 for refresh, since they haven’t implemented it. (Otherwise you’re stuck with Cmd+R, which is not so easy to press…)

    If you use Dvorak, there’s no issue, since Q and W are on different hands. The problem comes when you want to cut something and close the window accidentally… which I imagine would be very common if someone else tries to use your computer, since Apple don’t make it easy to have a physical Dvorak keyboard.

  3. Andy

    the shortcut I’d recommend adding to Chrome would be F5 for refresh, since they haven’t implemented it. (Otherwise you’re stuck with Cmd+R, which is not so easy to press…)

  4. optionalg

    does not work for firefox…

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!