Merge pull request #1772 from BlairDuncan/mainMenuBarFix

main menubar looping cursor navigation
This commit is contained in:
aparajita
2013-02-16 15:06:05 -08:00
+3 -1
View File
@@ -701,6 +701,8 @@ var STICKY_TIME_INTERVAL = 0.4,
if ([item isSeparatorItem] || [item isHidden] || ![item isEnabled])
[self moveDown:menu];
}
else if (menu == [CPApp mainMenu])
[menu _highlightItemAtIndex:0];
}
- (void)moveUp:(CPMenu)menu
@@ -709,7 +711,7 @@ var STICKY_TIME_INTERVAL = 0.4,
if (index < 0)
{
if (index != CPNotFound)
if (index != CPNotFound || menu == [CPApp mainMenu])
[menu _highlightItemAtIndex:[menu numberOfItems] - 1];
return;
}