mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 14:43:51 +02:00
LCL, When backspace/delete is pressed in a readonly TDBEdit, suppress the key, from Joost, issue #13176
git-svn-id: trunk@18722 -
This commit is contained in:
parent
4ee69dac03
commit
2298d92d57
@ -151,9 +151,11 @@ begin
|
||||
SelectAll;
|
||||
Key := VK_UNKNOWN;
|
||||
end else
|
||||
if Key=VK_DELETE then begin
|
||||
if Key in [VK_DELETE, VK_BACK] then begin
|
||||
if not IsReadOnly then
|
||||
FDatalink.Edit;
|
||||
FDatalink.Edit
|
||||
else
|
||||
Key := VK_UNKNOWN;
|
||||
end else
|
||||
if Key=VK_TAB then begin
|
||||
if FDataLink.CanModify and FDatalink.Editing then
|
||||
|
Loading…
Reference in New Issue
Block a user