Make Alt+F4 work and warn the user about terminating more than one tab #2188

Closed
opened 2026-01-30 22:49:03 +00:00 by claunia · 6 comments
Owner

Originally created by @arnederuwe on GitHub (Jun 25, 2019).

Originally assigned to: @KaiyuWang16 on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Steps to reproduce

Start The terminal app, try to close it using Alt + F4

Expected behavior

The app should close

Actual behavior

The app doesn't close, which is inconsistent with 99% of windows apps

Originally created by @arnederuwe on GitHub (Jun 25, 2019). Originally assigned to: @KaiyuWang16 on GitHub. <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): 0.2.1715.0 ``` # Steps to reproduce Start The terminal app, try to close it using Alt + F4 # Expected behavior The app should close # Actual behavior The app doesn't close, which is inconsistent with 99% of windows apps
Author
Owner

@Shorotshishir commented on GitHub (Jun 25, 2019):

On Second Thought.
PowerShell and WSL individually don't close on alt+f4 as they don't have it set for the task. Windows Terminal shows it has alt+f4 set to close but it doesn't work. perhaps they are trying to make it consistent with the rest two.

@Shorotshishir commented on GitHub (Jun 25, 2019): **On Second Thought.** PowerShell and WSL individually don't close on `alt+f4` as they don't have it set for the task. Windows Terminal shows it has `alt+f4` set to close but it doesn't work. perhaps they are trying to make it consistent with the rest two.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 27, 2019):

This is now the tracking issue for getting alt+f4 working and adding a dialog to stop users from harming their running session state.

@DHowett-MSFT commented on GitHub (Jun 27, 2019): This is now the tracking issue for getting alt+f4 working and adding a dialog to stop users from harming their running session state.
Author
Owner

@praneetloke commented on GitHub (Sep 1, 2019):

It would also be nice if there was an option to prompt the user about closing a tab that has a running program. For example, running a development server of some kind in a tab in interactive mode (vs. daemon mode) is often a development workflow for all sorts of apps (Angular CLI, webpack-based apps, Node apps etc.) these days.

@praneetloke commented on GitHub (Sep 1, 2019): It would also be nice if there was an option to prompt the user about closing a tab that has a running program. For example, running a development server of some kind in a tab in interactive mode (vs. daemon mode) is often a development workflow for all sorts of apps (Angular CLI, webpack-based apps, Node apps etc.) these days.
Author
Owner

@DHowett-MSFT commented on GitHub (Sep 24, 2019):

This was fixed by #2526.

@DHowett-MSFT commented on GitHub (Sep 24, 2019): This was fixed by #2526.
Author
Owner

@codenotworking commented on GitHub (Aug 18, 2024):

I don't think this was fixed, because #17613 exists.

@codenotworking commented on GitHub (Aug 18, 2024): I don't think this was fixed, because [#17613](https://github.com/microsoft/terminal/issues/17613) exists.
Author
Owner

@DHowett commented on GitHub (Aug 18, 2024):

@codenotworking thanks, we’ll keep all further discussion over there rather than on this five year old issue.

@DHowett commented on GitHub (Aug 18, 2024): @codenotworking thanks, we’ll keep all further discussion over there rather than on this *five year old* issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2188