Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use cmd+tab, cmd+W, cmd+A a lot and I don't remember how many times I hit cmd+Q accidentally.

Is it possible to change the shortcut for quitting applications from cmd+Q to something else (not to disallow using keyboard to quit applications), ideally for applications all at once (not to do it for individual application one by one)?

share|improve this question
I thought changing it in the Keyboard section of System Preferences, under Keyboard Shortcuts might work, but it didn't here. Unless I need to reboot to see the change. – George C Nov 7 '12 at 6:18
up vote 1 down vote accepted

This should change the shortcut to ⇧⌘Q for most currently installed applications:

defaults write -g NSUserKeyEquivalents -dict-add $(mdfind | grep -v { | sed 's/.*\//Quit /g;s/\.app$//g;'"s/'/\\''\\'/g;s/^/'/g;s/$/' '\$@q'/g" | uniq | tr '\n' ' ')

You could also use KeyRemap4MacBook to change ⌘Q to some other key combination or require holding or pressing it twice to quit an application.

share|improve this answer

Howtogeek devoted a whole article about this subject and they provided an excellent tutorial on how to do this. Basically it comes down to override the default function.

enter image description here

BUT there is a (huge) disadvantage, if you do it that way, you'll have to do this for EVERY application you use, which might work a bit confusing...
So they provide a work-around rather then a solid solution.

share|improve this answer
My question mentions that "for applications all at once (not to do it for individual application one by one)". – powerboy Nov 8 '12 at 4:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.