mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 23:58:23 +02:00
IDE: component palette: right click does not select component and bring form to front
git-svn-id: trunk@41820 -
This commit is contained in:
parent
ad78656157
commit
d3184470ed
@ -276,13 +276,16 @@ end;
|
||||
procedure TComponentPalette.ComponentBtnMouseDown(Sender: TObject; Button: TMouseButton;
|
||||
Shift: TShiftState; X, Y: Integer);
|
||||
begin
|
||||
if ssShift in Shift then
|
||||
SelectionMode := csmMulty
|
||||
else
|
||||
SelectionMode := csmSingle;
|
||||
SelectButton(TComponent(Sender));
|
||||
if Assigned(OnClassSelected) then
|
||||
OnClassSelected(Self);
|
||||
if Button=mbLeft then
|
||||
begin
|
||||
if ssShift in Shift then
|
||||
SelectionMode := csmMulty
|
||||
else
|
||||
SelectionMode := csmSingle;
|
||||
SelectButton(TComponent(Sender));
|
||||
if Assigned(OnClassSelected) then
|
||||
OnClassSelected(Self);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TComponentPalette.ComponentBtnMouseUp(Sender: TObject; Button: TMouseButton;
|
||||
|
Loading…
Reference in New Issue
Block a user