January 30, 2005
Removing Safari's "Quit" keyboard equivalent
It doesn't happen often, but once in a while I hit Command-Q ("Quit") instead of Command-W (close tab/window) in Apple's Safari browser. I thought there was an option (hidden or otherwise) to require confirmation of a Quit command in Safari, but I can't find it. A decent alternative, however, is to enter the following in the Terminal
defaults write com.apple.Safari NSUserKeyEquivalents -dict-add "Quit Safari" "nil"
Relaunch Safari and viola! Command-Q no longer quits the program! Got the idea from this tip: "Remove shortcuts from applications"
Another helpful tip for Safari is this: scripts to save and restore Safari windows. Run the first script to save all of your open windows and tabs, the second to restore them all.Posted at January 30, 2005 04:33 PM, Categories: Computing