mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 00:37:11 +01:00
SynEdit: fix ctrl mouse link. broken in 33972
git-svn-id: trunk@33981 -
This commit is contained in:
parent
949ffedc46
commit
500ee16db6
@ -175,6 +175,26 @@ begin
|
||||
then
|
||||
exit(True);
|
||||
end;
|
||||
|
||||
for i := 0 to TCustomSynEdit(SynEdit).MouseTextActions.Count - 1 do begin
|
||||
act := TCustomSynEdit(SynEdit).MouseTextActions.Items[i];
|
||||
if (act.Command = emcMouseLink) and
|
||||
( (act.Option = emcoMouseLinkShow) or (not OnlyShowLink) ) and
|
||||
act.IsMatchingShiftState(AShift)
|
||||
then
|
||||
exit(True);
|
||||
end;
|
||||
|
||||
if not TCustomSynEdit(SynEdit).SelAvail then exit;
|
||||
|
||||
for i := 0 to TCustomSynEdit(SynEdit).MouseSelActions.Count - 1 do begin
|
||||
act := TCustomSynEdit(SynEdit).MouseSelActions.Items[i];
|
||||
if (act.Command = emcMouseLink) and
|
||||
( (act.Option = emcoMouseLinkShow) or (not OnlyShowLink) ) and
|
||||
act.IsMatchingShiftState(AShift)
|
||||
then
|
||||
exit(True);
|
||||
end;
|
||||
end;
|
||||
|
||||
constructor TSynEditMarkupCtrlMouseLink.Create(ASynEdit: TSynEditBase);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user