mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed PgUp/PgDown in autocomplete list
This commit is contained in:
parent
71eca79ef1
commit
29beeb4e77
2 changed files with 16 additions and 6 deletions
|
@ -671,9 +671,19 @@ namespace IDE.ui
|
|||
return;
|
||||
int32 newSelection = mSelectIdx + dir;
|
||||
if (newSelection < 0)
|
||||
newSelection = (.)mEntryList.Count - 1;
|
||||
{
|
||||
if (dir == -1)
|
||||
newSelection = (.)mEntryList.Count - 1;
|
||||
else
|
||||
newSelection = 0;
|
||||
}
|
||||
else if (newSelection >= mEntryList.Count)
|
||||
newSelection = 0;
|
||||
{
|
||||
if (dir == 1)
|
||||
newSelection = 0;
|
||||
else
|
||||
newSelection = (.)mEntryList.Count - 1;
|
||||
}
|
||||
|
||||
if (mEntryList[newSelection].mShowIdx != -1)
|
||||
Select(newSelection);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue