synedit: don't initialize KeyStrokes collection, when loading it from .lrs or .lfm (fixes bug #7305), thanks to Martin Schreiber for the hint

git-svn-id: trunk@15730 -
This commit is contained in:
vincents 2008-07-10 07:19:08 +00:00
parent 400dcfccd4
commit 8a3217a900

View File

@ -1466,9 +1466,12 @@ begin
fOverwriteCaret := ctBlock;
FSelectionMode := smNormal;
fKeystrokes := TSynEditKeyStrokes.Create(Self);
{$IFDEF SYN_LAZARUS}
if assigned(Owner) and not (csLoading in Owner.ComponentState) then
{$ENDIF}
SetDefaultKeystrokes;
fMarkList := TSynEditMarkList.Create(self);
fMarkList.OnChange := {$IFDEF FPC}@{$ENDIF}MarkListChange;
SetDefaultKeystrokes;
fRightEdgeColor := clSilver;
{$IFDEF SYN_MBCSSUPPORT}
fImeCount := 0;