mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 19:20:06 +02:00
IDEIntf: object inspector: fixed DoCallEdit checking for focus
git-svn-id: trunk@41867 -
This commit is contained in:
parent
4a4b3a8ecd
commit
bbf5c1f087
@ -1356,7 +1356,8 @@ var
|
|||||||
CurRow:TOIPropertyGridRow;
|
CurRow:TOIPropertyGridRow;
|
||||||
OldChangeStep: integer;
|
OldChangeStep: integer;
|
||||||
begin
|
begin
|
||||||
if not CanEditRowValue(true) then exit;
|
//debugln(['TOICustomPropertyGrid.DoCallEdit ',dbgs(GetFocus),' ',DbgSName(FindControl(GetFocus))]);
|
||||||
|
if not CanEditRowValue(false) then exit;
|
||||||
|
|
||||||
OldChangeStep:=fChangeStep;
|
OldChangeStep:=fChangeStep;
|
||||||
CurRow:=Rows[FItemIndex];
|
CurRow:=Rows[FItemIndex];
|
||||||
@ -1957,7 +1958,8 @@ begin
|
|||||||
or (FPropertyEditorHook.LookupRoot = FCurrentEditorLookupRoot));
|
or (FPropertyEditorHook.LookupRoot = FCurrentEditorLookupRoot));
|
||||||
if Result and CheckFocus then begin
|
if Result and CheckFocus then begin
|
||||||
FocusedControl:=FindControl(GetFocus);
|
FocusedControl:=FindControl(GetFocus);
|
||||||
if (FocusedControl<>nil) and not IsParentOf(FocusedControl) then
|
if (FocusedControl<>nil) and (FocusedControl<>Self)
|
||||||
|
and (not IsParentOf(FocusedControl)) then
|
||||||
Result:=false;
|
Result:=false;
|
||||||
end;
|
end;
|
||||||
if Result then begin
|
if Result then begin
|
||||||
|
Loading…
Reference in New Issue
Block a user