mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
cody: fixed vk_up on empty
git-svn-id: trunk@64724 -
This commit is contained in:
parent
26cadbd4f3
commit
16eb8abc21
@ -37,7 +37,7 @@ unit CodyIdentifiersDlg;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LCLProc, contnrs, Laz_AVL_Tree,
|
||||
Classes, SysUtils, Math, LCLProc, contnrs, Laz_AVL_Tree,
|
||||
// LCL
|
||||
Forms, Controls, Dialogs, ButtonPanel, StdCtrls, ExtCtrls, LCLType, Buttons, Menus,
|
||||
// IdeIntf
|
||||
@ -924,7 +924,7 @@ begin
|
||||
case Key of
|
||||
VK_DOWN:
|
||||
if i<0 then
|
||||
ItemsListBox.ItemIndex:=0
|
||||
ItemsListBox.ItemIndex:=Min(ItemsListBox.Items.Count-1,0)
|
||||
else if i<ItemsListBox.Count-1 then
|
||||
ItemsListBox.ItemIndex:=i+1;
|
||||
VK_UP:
|
||||
|
Loading…
Reference in New Issue
Block a user