-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Replace confirmCloseAllTabs with confirmOnClose
#20055
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -801,7 +801,7 @@ namespace winrt::TerminalApp::implementation | |
|
|
||
| _RemoveTabs(tabsToRemove); | ||
|
|
||
| actionArgs.Handled(true); | ||
| actionArgs.Handled(!tabsToRemove.empty()); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this just a change on technical correctness or is there a common situation where
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes it so that if there aren't any tabs to remove, we don't mark the event as handled. We disable the option in the context menu, but a user can still call the appropriate action via a key binding. Marking it as unhandled means that we'll let the key chord pass through. |
||
| } | ||
| } | ||
|
|
||
|
|
@@ -837,7 +837,7 @@ namespace winrt::TerminalApp::implementation | |
| // tab row, until you mouse over them. Probably has something to do | ||
| // with tabs not resizing down until there's a mouse exit event. | ||
|
|
||
| actionArgs.Handled(true); | ||
| actionArgs.Handled(!tabsToRemove.empty()); | ||
| } | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.