14

One thing I do a lot is Command ⌘-Tab over to TextEdit, jot down some notes, and then decide to throw them away. I can close the window with -W, but is there a way to not-save it from just the keyboard?

Escape simply cancels the close. -D takes the file-picker to the Desktop (and I thought this used to work, pre-Lion, but maybe I'm just imagining it).

Is there a keyboard shortcut for Don't Save, short of turning on Full Keyboard Access?

  • 1
    It did exist pre-Lion; you aren't imagining it. – CajunLuke Jul 10 '12 at 22:44
14

The default shortcut was changed to ⌘⌫ on Lion.

You can change it back to ⌘D with defaults write -g NSSavePanelStandardDesktopShortcutOnly -bool true. It won't affect some applications like TextEdit though.

  • 1
    Great! Can I ask how you knew this? – Ken Jul 10 '12 at 16:00
  • It's been mentioned here and on other websites multiple times. – Lri Jul 10 '12 at 16:10
  • 1
  • "Command-Delete: Select Delete or Don't Save in a dialog that contains a Delete or Don't Save button" (from the previous link). I just tested ⌘⌫ on OS X Yosemite with Atom and it works too, so it may be generalized to other OS X versions and apps too! – Ricardo Jan 26 '16 at 18:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .