[PR #8461] Improve clipboard handling in "drag and drop" scenario #27204

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

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

State: closed
Merged: Yes


This PR improves the clipboard handling logic of "drag and drop" in
TermControl, making it more useful and less likely to crash.

  • Added support for two more categories of content, ApplicationLink
    and WebLink.
  • Reordered the ifs, making StorageItem the last clause. With WT being
    a text-oriented application, I think we can safely assume that the
    content being pasted is likely to be text/links.
  • Catch possible exceptions during
    e.DataView().GetStorageItemsAsync().

Closes #7804

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8461 **State:** closed **Merged:** Yes --- This PR improves the clipboard handling logic of "drag and drop" in TermControl, making it more useful and less likely to crash. * Added support for two more categories of content, `ApplicationLink` and `WebLink`. * Reordered the ifs, making `StorageItem` the last clause. With WT being a text-oriented application, I think we can safely assume that the content being pasted is likely to be text/links. * Catch possible exceptions during `e.DataView().GetStorageItemsAsync()`. Closes #7804
claunia added the pull-request label 2026-01-31 09:20:38 +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#27204