Can I globally change the cmd-Q shortcut to require holding for two seconds, like the option in Chrome? Many, many times, I accidentally press ⌘+Q when I meant to close a tab or window, or switch applications. When I saw the option in Google Chrome to require the shortcut to be held, I was overjoyed. Problem is, I use Safari.

So, in short: How can I make the "hold command-Q" shortcut universal across all of my applications (or at least Safari)?
Here's a partial solution for starters:

Preventing accidental quitting in Safari (or any specific application)

Simply set up an unusual keyboard shortcut for the "Quit Safari" menu item in Keyboard preferences.

This will disable the standard ⌘Q shortcut, so accidentally hitting it doesn't make a difference — and you have to think before you quit!





(Unfortunately, I haven't found an easy way to do this for every application, without entering each one manually.)