[PR #8393] Fix sending a title change event when the renamer is dismissed #27188

Closed
opened 2026-01-31 09:20:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8393

State: closed
Merged: Yes


Fix for #8365

Adds a _renameCancelled bool that determines whether we raise the event for a title change. We do this because the lost focus handler for the rename box will be called both when the renamer is dismissed by clicking somewhere else and by pressing enter/escape. So, the lost focus handler needs to conditionally raise the event.

Closes #8365

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8393 **State:** closed **Merged:** Yes --- Fix for #8365 Adds a `_renameCancelled` bool that determines whether we raise the event for a title change. We do this because the lost focus handler for the rename box will be called _both_ when the renamer is dismissed by clicking somewhere else and by pressing enter/escape. So, the lost focus handler needs to conditionally raise the event. Closes #8365
claunia added the pull-request label 2026-01-31 09:20:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27188