lcl: remove handling for generic keys in TCustomDBListBox.KeyDown: if the key trigger a selection change then it will put the dataset in edit mode

git-svn-id: trunk@30341 -
This commit is contained in:
blikblum 2011-04-17 11:49:29 +00:00
parent 02f0cb702f
commit 876b12fea5

View File

@ -111,16 +111,6 @@ begin
//cancel out of editing by reset on esc
FDataLink.Reset;
Key := VK_UNKNOWN;
end else if (Key<>VK_UNKNOWN) then begin
//make sure we call edit to ensure the datset is in edit,
//this is for where the datasource is in autoedit, so we aren't
//read only even though the dataset isn't really in edit
//if this validates false make sure the entry doesn't change
//since listbox doesn't have its own read only yet we gots to fake it
//here
if FDataLink.Edit then
exit;
Key := VK_UNKNOWN;
end;
end;