mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 02:48:31 +02:00
IDE: Fix a crash in Components View. Issue #20305, patch from Bart Broersma
git-svn-id: trunk@32446 -
This commit is contained in:
parent
39d0a7fdfe
commit
751cd5b9ae
@ -326,7 +326,8 @@ procedure TComponentListForm.ListboxComponentsKeyDown(Sender: TObject;
|
||||
var Key: Word; Shift: TShiftState);
|
||||
begin
|
||||
if Key = VK_RETURN then
|
||||
ListboxComponentsDblClick(Sender);
|
||||
if (ListboxComponents.ItemIndex >= 0) then
|
||||
ListboxComponentsDblClick(Sender);
|
||||
end;
|
||||
|
||||
procedure TComponentListForm.SetFocusToDataList;
|
||||
|
Loading…
Reference in New Issue
Block a user