Return the “Don’t Save” Keyboard Shortcut to Command+D in Mac OS X Lion
Mac OS X Lion has rearranged the “Don’t Save” keyboard shortcut that shows up in the save dialog windows, moving from the longstanding Command+D to Command+Delete instead. Presumably this was done because Command+Delete (backspace) makes more sense and it’s harder to make a mistake, but some habits die hard.
If you don’t like the new one, you can return Command+D to the keyboard shortcut for the “Don’t Save” button with the following defaults write command:
defaults write NSGlobalDomain NSSavePanelStandardDesktopShortcutOnly -bool YES
Keep in mind the default behavior of Command+D in a save dialog window in OS X Lion is to set the location to the Desktop, and this is part of a broader change to the save dialogs in general that came with Lion. You can always revert back to the new default with:
defaults write NSGlobalDomain NSSavePanelStandardDesktopShortcutOnly -bool NO
Realistically, if you haven’t noticed the change, this is one of those defaults write commands that there isn’t any reason to mess with.