From e31a2c9c04d6c624a291e7c541335ff5faea0c58 Mon Sep 17 00:00:00 2001 From: scgopi Date: Fri, 2 Oct 2026 20:59:51 -0700 Subject: [PATCH] Make Delete the default button in the loop delete dialog Co-Authored-By: Claude Opus 5.5 Signed-off-by: scgopi --- graphcode/Sources/Features/App/AppView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphcode/Sources/Features/App/AppView.swift b/graphcode/Sources/Features/App/AppView.swift index e390bb85..816d38c9 100644 --- a/graphcode/Sources/Features/App/AppView.swift +++ b/graphcode/Sources/Features/App/AppView.swift @@ -172,7 +172,9 @@ struct AppView: View { ), titleVisibility: .visible ) { + // ⌘W raises this, so Return should finish the job without reaching for the mouse. Button("Delete", role: .destructive) { confirmPendingDeletion() } + .keyboardShortcut(.defaultAction) Button("Cancel", role: .cancel) { cancelPendingDeletion() } } message: { Text(