mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-24 11:39:17 +02:00
lcl: fix deleting numbers in TDBEdit. Issue #21541
git-svn-id: trunk@36295 -
This commit is contained in:
parent
961dea0c00
commit
85b8beb59c
@ -142,15 +142,12 @@ begin
|
||||
else
|
||||
CharKey := #255;
|
||||
|
||||
case CharKey of
|
||||
//#8: // special keys
|
||||
// if not FDatalink.Edit then
|
||||
// UTF8Key:='';
|
||||
|
||||
#8, #32..#255: //standard keys
|
||||
if not FieldCanAcceptKey(FDataLink.Field, CharKey) or not FDatalink.Edit then
|
||||
UTF8Key:='';
|
||||
end;//case
|
||||
//handle standard keys
|
||||
if CharKey in [#32..#255] then
|
||||
begin
|
||||
if not FieldCanAcceptKey(FDataLink.Field, CharKey) or not FDatalink.Edit then
|
||||
UTF8Key := '';
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TDBEdit.Notification(AComponent: TComponent; Operation: TOperation);
|
||||
|
Loading…
Reference in New Issue
Block a user