Author: gedmurphy Date: Thu Apr 27 02:44:26 2006 New Revision: 21745
URL: http://svn.reactos.ru/svn/reactos?rev=21745&view=rev Log: - allow start menu selection to loop when using the keyboard - patch by Andreas Bjerkeholt (harteex@gmail.com)
Modified: trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp
Modified: trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/base/shell/explorer/taskbar/... ============================================================================== --- trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp (original) +++ trunk/reactos/base/shell/explorer/taskbar/startmenu.cpp Thu Apr 27 02:44:26 2006 @@ -707,8 +707,14 @@ 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;