mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-17 08:27:39 +02:00
used a hidden drop window to get drag filename
This commit is contained in:
parent
7b8cdb6b38
commit
b85a9b628e
7 changed files with 433 additions and 59 deletions
|
@ -2102,6 +2102,11 @@ COSXScreen::getDraggingFilename()
|
|||
CString fileList(info);
|
||||
m_draggingFilename = fileList;
|
||||
}
|
||||
|
||||
// fake a escape key down and up then left mouse button up
|
||||
fakeKeyDown(kKeyEscape, 8192, 1);
|
||||
fakeKeyUp(1);
|
||||
fakeMouseButton(kButtonLeft, false);
|
||||
}
|
||||
return m_draggingFilename;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue