MG: fixed stopping keypress event if handled by LCL

git-svn-id: trunk@3139 -
This commit is contained in:
lazarus 2002-08-18 16:49:51 +00:00
parent 6b69ba633b
commit 1f7c5dd3fa

View File

@ -2146,6 +2146,21 @@ var CleanCursorPos, Indent, insertPos: integer;
CompleteCode:=true;
end;
function IsNonExistingIdentAssignment: boolean;
begin
Result:=false;
{$IFDEF CTDEBUG}
writeln(' IsEventAssignment: IsNonExistingIdentAssignment...');
{$ENDIF}
// check assigment syntax
{if not CheckLocalVarAssignmentSyntax(VarNameAtom, AssignmentOperator,
TermAtom)
then
exit;}
end;
// function CompleteCode(CursorPos: TCodeXYPosition;
// var NewPos: TCodeXYPosition; var NewTopLine: integer;
// SourceChangeCache: TSourceChangeCache): boolean;
@ -2188,6 +2203,9 @@ begin
// test if Event assignment
if IsEventAssignment then exit;
// test if Local variable assignment
if IsNonExistingIdentAssignment then exit;
{$IFDEF CTDEBUG}
writeln('TCodeCompletionCodeTool.CompleteCode nothing to complete ... ');