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:
jesus 2009-02-17 04:02:22 +00:00
parent 4ee69dac03
commit 2298d92d57

View File

@ -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