mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 21:20:46 +02:00
VirtualTreeView: Cancel drag when context menu opens
On non-Windows widgetsets, a drag operation is started when right-clicking on an item in a tree that has a popup menu and right-click selection enabled.
This commit is contained in:
parent
df31c25382
commit
fe14d907f8
@ -16658,6 +16658,7 @@ var
|
|||||||
begin
|
begin
|
||||||
{$ifdef DEBUG_VTV}Logger.EnterMethod([lcMessages],'WMContextMenu');{$endif}
|
{$ifdef DEBUG_VTV}Logger.EnterMethod([lcMessages],'WMContextMenu');{$endif}
|
||||||
DoStateChange([], [tsClearPending, tsEditPending, tsOLEDragPending, tsVCLDragPending]);
|
DoStateChange([], [tsClearPending, tsEditPending, tsOLEDragPending, tsVCLDragPending]);
|
||||||
|
CancelDrag;
|
||||||
{$ifdef ContextMenuBeforeMouseUp}
|
{$ifdef ContextMenuBeforeMouseUp}
|
||||||
if Assigned(PopupMenu) then
|
if Assigned(PopupMenu) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user