-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Improve clipboard handling in "drag and drop" scenario #8461
Conversation
During the development of this PR, I found that simply putting
But just in case there is any other possible exceptions, I added the For For |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Yes! The comment is exactly what I want to add but failed to compose. You have read my mind 😄 |
😎 |
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 (cherry picked from commit 60f1b0b)
🎉 Handy links: |
🎉 Handy links: |
This PR improves the clipboard handling logic of "drag and drop" in
TermControl, making it more useful and less likely to crash.
ApplicationLink
and
WebLink
.StorageItem
the last clause. With WT beinga text-oriented application, I think we can safely assume that the
content being pasted is likely to be text/links.
e.DataView().GetStorageItemsAsync()
.Closes #7804