mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
Merge pull request #3972 from RaiKoHoff/Dev_Master
drag&drop text snippet while ALT-Key down will not scroll
This commit is contained in:
commit
d2d52c9c3c
@ -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 (...) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user