Improve drag&drop stability on windows
This commit is contained in:
parent
357e0ccc7e
commit
b125cf3da7
|
@ -1878,6 +1878,7 @@ std::string& MSWindowsScreen::getDraggingFilename()
|
|||
SWP_SHOWWINDOW);
|
||||
|
||||
// TODO: fake these keys properly
|
||||
ARCH->sleep(.05f); // A tiny sleep here makes the DragEnter event on m_dropWindow trigger much more consistently
|
||||
fakeKeyDown(kKeyEscape, 8192, 1);
|
||||
fakeKeyUp(1);
|
||||
fakeMouseButton(kButtonLeft, false);
|
||||
|
|
Loading…
Reference in New Issue