mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:40:41 +02:00
MG: fixed stopping keypress event if handled by LCL
git-svn-id: trunk@3139 -
This commit is contained in:
parent
6b69ba633b
commit
1f7c5dd3fa
@ -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 ... ');
|
||||
|
Loading…
Reference in New Issue
Block a user