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
Recent Entries
Road trip time (Apr 16)
The "Golden Eye" delivery system (Apr 9)
Aerial sightseeing (Apr 8)
RAW image workflow... (Apr 3)
Lebowski Fest (Mar 26)
April 2005
March 2005
January 2005
December 2004
November 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003

RSS 1.0 feed