mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 12:30:36 +02:00
IDE: search results: when single click jumps: single selection on mouse down
git-svn-id: trunk@46505 -
This commit is contained in:
parent
630e8e258a
commit
2948e8db10
@ -480,9 +480,15 @@ begin
|
|||||||
if Node=nil then exit;
|
if Node=nil then exit;
|
||||||
if x<Node.DisplayTextLeft then exit;
|
if x<Node.DisplayTextLeft then exit;
|
||||||
//debugln(['TSearchResultsView.TreeViewMouseDown single=',([ssDouble,ssTriple,ssQuad]*Shift=[]),' Option=',EnvironmentOptions.MsgViewDblClickJumps]);
|
//debugln(['TSearchResultsView.TreeViewMouseDown single=',([ssDouble,ssTriple,ssQuad]*Shift=[]),' Option=',EnvironmentOptions.MsgViewDblClickJumps]);
|
||||||
if ([ssDouble,ssTriple,ssQuad]*Shift=[]) = EnvironmentOptions.MsgViewDblClickJumps
|
if EnvironmentOptions.MsgViewDblClickJumps then
|
||||||
then exit;
|
begin
|
||||||
Node.Selected:=true;
|
// double click jumps
|
||||||
|
if not (ssDouble in Shift) then exit;
|
||||||
|
end else begin
|
||||||
|
// single click jumps -> single selection
|
||||||
|
if ([ssDouble,ssTriple,ssQuad]*Shift<>[]) then exit;
|
||||||
|
TV.Items.SelectOnlyThis(Node);
|
||||||
|
end;
|
||||||
if Assigned(fOnSelectionChanged) then
|
if Assigned(fOnSelectionChanged) then
|
||||||
fOnSelectionChanged(Self);
|
fOnSelectionChanged(Self);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user