mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-19 08:39:38 +01:00
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:
parent
02f0cb702f
commit
876b12fea5
@ -111,16 +111,6 @@ begin
|
|||||||
//cancel out of editing by reset on esc
|
//cancel out of editing by reset on esc
|
||||||
FDataLink.Reset;
|
FDataLink.Reset;
|
||||||
Key := VK_UNKNOWN;
|
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;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user