main menubar looping cursor navigation

This commit is contained in:
Blair Duncan
2013-02-16 17:26:19 -05:00
parent fc4d347fa1
commit 9c4317783b
+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;
}