Make completion proposal usable for mouse users again, after mainform has focus again. Broken in r4530. See issue #2640.

This commit is contained in:
Ansgar Becker
2013-10-08 04:27:56 +00:00
parent fad0b5de50
commit fcf6a24f37

View File

@ -5269,6 +5269,9 @@ begin
if not CanExecute then
Exit;
// Work around for issue #2640. See ApplicationDeActivate
Proposal.Form.Enabled := True;
rx := TRegExpr.Create;
// Find token1.token2.token3, while cursor is somewhere in token3
@ -11214,6 +11217,7 @@ begin
// and issue #3342
// Does not work for some reason in TApplicationEvents.OnDeactivate
SynCompletionProposal.Form.Enabled := False;
// Gets activated again in SynCompletionProposalExecute
end;