mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 07:18:14 +02:00
Cocoa: Fix TDBEdit as TDBMemo (issue #40985)
This commit is contained in:
parent
1c77cb1974
commit
f358fd7d17
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user