Add support for dragging and dropping paths onto the Terminal#4323
Conversation
|
Not sure I like this- it won't work with universal terminal or anything that doesn't have a wndproc. Is there a XAML event we can listen to? |
You've got a good point - I'll do that instead. |
DHowett-MSFT
left a comment
There was a problem hiding this comment.
Giving my official NAK on this one to dequeue it
…ag-path # Conflicts: # src/cascadia/TerminalApp/AppLogic.cpp # src/cascadia/TerminalApp/TerminalPage.cpp # src/cascadia/TerminalApp/TerminalPage.h
DHowett-MSFT
left a comment
There was a problem hiding this comment.
Love it! We can probably back out all the non-TermControl changes, right?
carlos-zamora
left a comment
There was a problem hiding this comment.
A few minor things but nothing worth blocking over.
miniksa
left a comment
There was a problem hiding this comment.
I saw nothing that Carlos didn't. Holding the check until Carlos's comments are complete, though.
|
Hello @zadjii-msft! 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 (
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🎉 Handy links: |
Summary of the Pull Request
I took the code from conhost that handles this and just copy-pasted it into the terminal codebase.
References
Original conhost code:
terminal/src/interactivity/win32/windowproc.cpp
Lines 854 to 889 in 027f122
PR Checklist
Detailed Description of the Pull Request / Additional comments
Okay it was a little more complicated than that. I had
IslandWindowhandle the drop, which then raises a generic event forAppHostto handle.AppHosthandles this by writing the path as input to the terminal, traversingAppLogic,TerminalPageand finally landing inTermControlValidation Steps Performed
Tested manually with both paths with and without spaces.