News for hackers. Stuff that matters.
Re:Making macOS Behave Itself by musicale on Wednesday May 25, 2022 @04:42PM (#31510258)
Option-click on a window's red close button closes all open windows/documents in a macOS app, but I don't know of a "delete all" shortcut, so (unfortunately) all unsaved documents will get a confirmation dialog in their window where you have to click the delete button.

There used to be command key shortcuts for the don't save/cancel/save (command-d/s/c iirc?) dialog buttons, but they've changed the ui to delete/save and seem to have removed the keyboard equivalents.

The right way to do it (in my opinion) would be option-click on the Delete button or command-option-D, but they don't seem to have implemented that.

Re:Making macOS Behave Itself by msbarnett on Wednesday May 25, 2022 @04:54PM (#31510408)
> There used to be command key shortcuts for the don't save/cancel/save (command-d/s/c iirc?) dialog buttons, but they've changed the ui to delete/save and seem to have removed the keyboard equivalents.

Command-d is still mapped to don't save (at least in Preview, just verified). Escape is cancel.

Re:Making macOS Behave Itself by musicale on Thursday May 26, 2022 @04:19PM (#31522903)
Indeed, esc for Cancel and return/enter for Save still work - (which I actually knew, verified yesterday, and should probably have updated my post to mention before the annoying HN edit cutoff.)

Are you running macOS Monterey? It doesn't seem to have a Don't Save option in the "Do you want to keep this new document" dialog box - it's Delete, and command-d does not work for me.