From c04fcf5648746c0642ee2258c1aa8f13b9be1412 Mon Sep 17 00:00:00 2001 From: Juraj Majerik Date: Wed, 25 Mar 2026 07:11:22 +0100 Subject: [PATCH] fix(code): Default to action button in discard changes dialog Match VS Code behavior where the destructive action is focused by default, allowing quick confirmation with Enter. --- .../renderer/features/task-detail/components/ChangesPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/task-detail/components/ChangesPanel.tsx b/apps/code/src/renderer/features/task-detail/components/ChangesPanel.tsx index 99a20a150..10d3669eb 100644 --- a/apps/code/src/renderer/features/task-detail/components/ChangesPanel.tsx +++ b/apps/code/src/renderer/features/task-detail/components/ChangesPanel.tsx @@ -199,7 +199,7 @@ function ChangedFileItem({ title: "Discard changes", message, buttons: ["Cancel", action], - defaultId: 0, + defaultId: 1, cancelId: 0, });