mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 07:29:27 +02:00
LCL: In TComboBox, after pressing Enter call EditingDone. Issue #20782
git-svn-id: trunk@33889 -
This commit is contained in:
parent
65c761d560
commit
bf07765fd5
@ -1028,6 +1028,13 @@ begin
|
||||
Select;
|
||||
end;
|
||||
|
||||
procedure TCustomComboBox.KeyUpAfterInterface(var Key: Word; Shift: TShiftState);
|
||||
begin
|
||||
inherited KeyUpAfterInterface(Key, Shift);
|
||||
if Key = VK_RETURN then
|
||||
EditingDone;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure TCustomComboBox.CNCommand(var TheMessage: TLMCommand);
|
||||
|
||||
|
@ -297,6 +297,7 @@ type
|
||||
procedure LMDrawListItem(var TheMessage: TLMDrawListItem); message LM_DrawListItem;
|
||||
procedure LMMeasureItem(var TheMessage: TLMMeasureItem); message LM_MeasureItem;
|
||||
procedure LMSelChange(var TheMessage); message LM_SelChange;
|
||||
procedure KeyUpAfterInterface(var Key: Word; Shift: TShiftState); override;
|
||||
procedure CNCommand(var TheMessage: TLMCommand); message CN_Command;
|
||||
procedure SetReadOnly(const AValue: Boolean);
|
||||
procedure UpdateSorted;
|
||||
|
Loading…
Reference in New Issue
Block a user