Don't ever Quit Safari again
I always have a hundred tabs and windows open in Safari. I know, it's a sickness.
You can imagine how AWFUL it feels when instead of hitting cmd-w to close an individual tab, I accidentally type cmd-q and quit the whole application. AWFUL! DEPRESSING!
But I found out that you can remap any keyboard shortcut in OS X. I set it so cmd-Q does ... wait for it... NOTHING!
Try it at home:
- Bring up the Keyboard & Mouse preference pane.
- Hit the Keyboard Shortcuts tab.
- Click the + icon.
- Select Safari from the Application menu.
- In the Menu Title box, enter the exact text "Quit Safari".
- In the Keyboard Shortcut box, enter a new shortcut (for instance, Command-Option-Q).
- Click Add.
Now you no longer need to suffer as I have.
And what do we do if the Keyboard Shortcut field won't let us type in it?
Hmm... I went back and fooled with it, and it will let me type in anything that's a key combination, like control-q or option-something or command-something. Straight characters don't work, of course, but I don't think that's what you're trying...
Oh, maybe this is it: It won't let you put something in that's already taken. Try something more obscure.