Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'closeWindow' ignoring confirmation #18434

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

carlos-zamora
Copy link
Member

Summary of the Pull Request

Reroutes the closeWindow action to use the CloseWindow() method like the window's X button does. This includes logic to display the confirmation dialog.

Also removes CloseRequested as it was only used by this action handler. We already have CloseWindowRequested so we're just using that instead.

Validation Steps Performed

closeWindow action while multiple tabs opened brings up the confirmation dialog

PR Checklist

Closes #17613

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Jan 16, 2025
@DHowett DHowett requested a review from lhecker January 21, 2025 23:00
Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

This seems right to me! Thanks for clearing up the web of events too!

@DHowett DHowett enabled auto-merge (squash) January 21, 2025 23:04
Copy link
Member

@lhecker lhecker left a comment

Choose a reason for hiding this comment

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

This is great!

@DHowett DHowett merged commit fb7b0e1 into main Jan 23, 2025
20 checks passed
@DHowett DHowett deleted the dev/cazamor/dedup-close branch January 23, 2025 23:24
DHowett pushed a commit that referenced this pull request Jan 28, 2025
Reroutes the `closeWindow` action to use the `CloseWindow()` method like
the window's X button does. This includes logic to display the
confirmation dialog.

Also removes `CloseRequested` as it was only used by this action
handler. We already have `CloseWindowRequested` so we're just using that
instead.

## Validation Steps Performed
✅ `closeWindow` action while multiple tabs opened brings up the
confirmation dialog

Closes #17613

(cherry picked from commit fb7b0e1)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgWkUeU
Service-Version: 1.22
DHowett pushed a commit that referenced this pull request Jan 28, 2025
Reroutes the `closeWindow` action to use the `CloseWindow()` method like
the window's X button does. This includes logic to display the
confirmation dialog.

Also removes `CloseRequested` as it was only used by this action
handler. We already have `CloseWindowRequested` so we're just using that
instead.

## Validation Steps Performed
✅ `closeWindow` action while multiple tabs opened brings up the
confirmation dialog

Closes #17613

(cherry picked from commit fb7b0e1)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgWkUeM
Service-Version: 1.21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. zBugBash-Consider
Projects
Status: Cherry Picked
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

Windows Terminal Alt+F4 behaviour
3 participants