You've already forked lazarus-ccr
RxFPC:TRxDBLookupEdit - fix change data with UP and DOWN key if popup window not showing
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6071 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -590,6 +590,15 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
inherited EditKeyDown(Key, Shift);
|
inherited EditKeyDown(Key, Shift);
|
||||||
|
if not (PopupVisible or ReadOnly) and (Key in [VK_UP, VK_DOWN]) and (Shift = []) then
|
||||||
|
begin
|
||||||
|
case Key of
|
||||||
|
VK_UP: if not FLookupDataLink.DataSet.BOF then FLookupDataLink.DataSet.Prior;
|
||||||
|
VK_DOWN: if not FLookupDataLink.DataSet.EOF then FLookupDataLink.DataSet.Next;
|
||||||
|
end;
|
||||||
|
Text:=FLookupDataLink.DataSet.FieldByName(FFieldList[FLookupDisplayIndex]).AsString;
|
||||||
|
Key:=0;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRxCustomDBLookupEdit.InternalClosePopup(AResult: boolean);
|
procedure TRxCustomDBLookupEdit.InternalClosePopup(AResult: boolean);
|
||||||
|
Reference in New Issue
Block a user