mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
One shared helper, widgets::dialog_buttons, now draws every modal's button row in the platform's order: Windows and Linux put the default action first (OK Cancel Apply, Yes No Cancel), macOS puts it last in the corner with Cancel beside it (Don't Save, Cancel, Save). Buttons are laid out left to right, so Tab walks them in reading order without the old manual focus code. The unsaved-changes prompt answers in the platform's words: Yes / No / Cancel with Y, N and Esc on Windows and Linux (as Photoshop on Windows), Don't Save / Cancel / Save on macOS. Enter takes the default answer unless Tab has focused another button. Co-Authored-By: Claude Opus 5.5 <[email protected]>