Merge pull request #3972 from RaiKoHoff/Dev_Master

drag&drop text snippet while ALT-Key down will not scroll
This commit is contained in:
Rainer Kottenhoff 2022-02-17 13:42:49 +01:00 committed by GitHub
commit d2d52c9c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3457,7 +3457,10 @@ STDMETHODIMP ScintillaWin::DragOver(DWORD grfKeyState, POINTL pt, PDWORD pdwEffe
// Update the cursor.
POINT rpt = {pt.x, pt.y};
::ScreenToClient(MainHWND(), &rpt);
SetDragPosition(SPositionFromLocation(PointFromPOINT(rpt), false, false, UserVirtualSpace()));
// >>>>>>>>>>>>>>> BEG NON STD SCI PATCH >>>>>>>>>>>>>>>
if (!KeyboardIsKeyDown(VK_MENU)) // ALT-Key
// <<<<<<<<<<<<<<< END NON STD SCI PATCH <<<<<<<<<<<<<<<
SetDragPosition(SPositionFromLocation(PointFromPOINT(rpt), false, false, UserVirtualSpace()));
return S_OK;
} catch (...) {