mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
LCL, grids, check for valid editor
git-svn-id: trunk@42991 -
This commit is contained in:
parent
189a3c9fa2
commit
6ab0ade4ee
@ -7357,7 +7357,8 @@ end;
|
||||
function TCustomGrid.Focused: Boolean;
|
||||
begin
|
||||
Result := CanTab and (HandleAllocated and
|
||||
(FindOwnerControl(GetFocus)=Self) or (FEditor.Visible and FEditor.Focused));
|
||||
(FindOwnerControl(GetFocus)=Self) or
|
||||
((FEditor<>nil) and FEditor.Visible and FEditor.Focused));
|
||||
end;
|
||||
|
||||
procedure TCustomGrid.InvalidateCell(aCol, aRow: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user