mirror of
https://github.com/reactos/reactos.git
synced 2025-06-11 04:47:22 +00:00
- allow start menu selection to loop when using the keyboard
- patch by Andreas Bjerkeholt (harteex@gmail.com) svn path=/trunk/; revision=21745
This commit is contained in:
parent
633c345cae
commit
ead212bffe
1 changed files with 7 additions and 1 deletions
|
@ -707,9 +707,15 @@ bool StartMenu::Navigate(int step)
|
|||
for(;;) {
|
||||
idx += step;
|
||||
|
||||
if (idx<0 || idx>(int)_buttons.size())
|
||||
if ((int)_buttons.size() <= 1 && (idx<0 || idx>(int)_buttons.size()))
|
||||
break;
|
||||
|
||||
if (idx<0)
|
||||
idx += _buttons.size();
|
||||
|
||||
if (idx>(int)_buttons.size())
|
||||
idx -= _buttons.size()+1;
|
||||
|
||||
if (SelectButtonIndex(idx, false))
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue