mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
- allow start menu selection to loop when using the keyboard
- patch by Andreas Bjerkeholt ([email protected]) svn path=/trunk/; revision=21745
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user