mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 15:39:18 +02:00
LCL, fix dbgrid right click selection when dgAnyButtonCanSelect option is active, patch by Emil Totev, issue #37357
This commit is contained in:
parent
1c87dc96eb
commit
a80484b538
@ -2820,10 +2820,10 @@ begin
|
|||||||
if ssCtrl in Shift then
|
if ssCtrl in Shift then
|
||||||
ToggleSelectedRow
|
ToggleSelectedRow
|
||||||
else begin
|
else begin
|
||||||
if Button=mbLeft then
|
if (Button=mbLeft) or (dgAnyButtonCanSelect in Options) then
|
||||||
ClearSelection(true)
|
ClearSelection(true);
|
||||||
// Select row before popupmenu
|
// Select row before popupmenu
|
||||||
else if (Button=mbRight) and Assigned(PopupMenu) and not FSelectedRows.CurrentRowSelected then
|
if (Button=mbRight) and Assigned(PopupMenu) and not FSelectedRows.CurrentRowSelected then
|
||||||
ToggleSelectedRow;
|
ToggleSelectedRow;
|
||||||
doMoveToColumn;
|
doMoveToColumn;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user