designer: stop resizing when Esc is pressed (bug #0010981)

git-svn-id: trunk@18559 -
This commit is contained in:
paul 2009-02-04 14:17:13 +00:00
parent fd4205614a
commit c0d727fb3c

View File

@ -549,12 +549,27 @@ procedure TDesigner.SelectParentOfSelection;
var
i: Integer;
begin
if ControlSelection.OnlyInvisiblePersistentsSelected then exit;
if ControlSelection.LookupRootSelected then begin
SelectOnlyThisComponent(FLookupRoot);
exit;
if ControlSelection.ActiveGrabber <> nil then
begin
ControlSelection.ActiveGrabber := nil;
if ControlSelection.RubberbandActive then
ControlSelection.RubberbandActive := False;
LastMouseMovePos.X:=-1;
Exclude(FFlags, dfHasSized);
MouseDownComponent := nil;
MouseDownSender := nil;
Exit;
end;
if ControlSelection.OnlyInvisiblePersistentsSelected then
Exit;
if ControlSelection.LookupRootSelected then
begin
SelectOnlyThisComponent(FLookupRoot);
Exit;
end;
i:=ControlSelection.Count-1;
while (i>=0)
and ( (ControlSelection[i].ParentInSelection)