mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 13:09:14 +02:00
TurboPower_IPro: New selection method SHIFT+Click
git-svn-id: trunk@50155 -
This commit is contained in:
parent
41bc75cd8e
commit
604f4c1410
@ -12945,10 +12945,17 @@ begin
|
||||
{$IFDEF IP_LAZARUS}
|
||||
Self.SetFocus;
|
||||
if (Button=mbLeft) and HtmlPanel.AllowTextSelect then begin
|
||||
ClearSelection;
|
||||
SelStart := Point(X + ViewLeft, Y + ViewTop);
|
||||
NewSelection := False;
|
||||
HaveSelection := True;
|
||||
if Shift * [ssShift] = [] then begin
|
||||
ClearSelection;
|
||||
SelStart := Point(X + ViewLeft, Y + ViewTop);
|
||||
NewSelection := False;
|
||||
HaveSelection := True;
|
||||
end else
|
||||
if (Shift * [ssShift] = [ssShift]) and HaveSelection then begin
|
||||
SelEnd := Point(X + ViewLeft, Y + ViewTop);
|
||||
SetSelection;
|
||||
ScrollPtInView(SelEnd);
|
||||
end;
|
||||
end;
|
||||
{$ELSE}
|
||||
IPHC := HtmlPanel;
|
||||
|
Loading…
Reference in New Issue
Block a user