Skip to content

fix(code): Default to action button in discard changes dialog#1327

Merged
jurajmajerik merged 1 commit intomainfrom
fix/discard-changes-default-button
Mar 25, 2026
Merged

fix(code): Default to action button in discard changes dialog#1327
jurajmajerik merged 1 commit intomainfrom
fix/discard-changes-default-button

Conversation

@jurajmajerik
Copy link
Copy Markdown
Contributor

@jurajmajerik jurajmajerik commented Mar 25, 2026

Problem

When discarding changes, you have to click the action button every time.

Changes

Default to the action button instead so that I can quickly hit Enter, same as VS Code does it.

How did you test this code?

Before After
image image

Match VS Code behavior where the destructive action is focused by
default, allowing quick confirmation with Enter.
Copy link
Copy Markdown
Member

@charlesvien charlesvien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jurajmajerik jurajmajerik merged commit 4428136 into main Mar 25, 2026
14 checks passed
@jurajmajerik jurajmajerik deleted the fix/discard-changes-default-button branch March 25, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants