Cocoa & Db: enable dbedit/dbmemo to input when FDataLink.Field=nil, patch by Ugo Boccardi

This commit is contained in:
rich2014 2024-07-02 21:32:32 +08:00
parent fdbb1e6aa3
commit 46a014d098
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ begin
VK_OEM_1..VK_OEM_3,
VK_OEM_4..VK_OEM_8:
begin
if not FDatalink.Edit then
if (FDataLink.Field <> nil) and (not FDatalink.Edit) then
Key:= 0;
end;
{$ENDIF}

View File

@ -165,7 +165,7 @@ begin
VK_OEM_1..VK_OEM_3,
VK_OEM_4..VK_OEM_8:
begin
if not FDatalink.Edit then
if (FDataLink.Field <> nil) and (not FDatalink.Edit) then
Key:= 0;
end;
{$ENDIF}