[PR #11039] Make sure we keep event handlers on the control when detaching a pane #28371

Open
opened 2026-01-31 09:28:05 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


When moving a pane to a new tab previously we removed the event handlers
on it as if we were closing it, but we are just moving it so we need to
keep them.

I tried really hard to make sure all of the events were hooked up
correctly, but I guess I missed these originally since they are normally
created in the Pane constructor.

Closes #11035

Validation Steps Performed

created panes, moved them to new tabs, confirmed that they close and
ding appropriately.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/11039 **State:** closed **Merged:** Yes --- When moving a pane to a new tab previously we removed the event handlers on it as if we were closing it, but we are just moving it so we need to keep them. I tried really hard to make sure all of the events were hooked up correctly, but I guess I missed these originally since they are normally created in the Pane constructor. Closes #11035 ## Validation Steps Performed created panes, moved them to new tabs, confirmed that they close and ding appropriately.
claunia added the pull-request label 2026-01-31 09:28:05 +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#28371