Cocoa: Fix TDBEdit as TDBMemo (issue #40985)

This commit is contained in:
rich2014 2024-06-14 23:14:13 +08:00
parent 1c77cb1974
commit f358fd7d17

View File

@ -128,6 +128,18 @@ begin
VK_RETURN:
if FDatalink.Editing then // soner: take changes, without this you must
FDatalink.UpdateRecord; // change focus to other dbctrl
{$IFDEF DARWIN}
// see also the comments in TDBMemo.KeyDown()
VK_0..VK_9,
VK_A..VK_Z,
VK_NUMPAD0..VK_DIVIDE,
VK_OEM_1..VK_OEM_3,
VK_OEM_4..VK_OEM_8:
begin
if not FDatalink.Edit then
Key:= 0;
end;
{$ENDIF}
end;
end;