From 9c4317783b8b1562cf4523d94734fb87ffe720a7 Mon Sep 17 00:00:00 2001 From: Blair Duncan Date: Sat, 16 Feb 2013 17:26:19 -0500 Subject: [PATCH] main menubar looping cursor navigation --- AppKit/CPMenu/_CPMenuManager.j | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppKit/CPMenu/_CPMenuManager.j b/AppKit/CPMenu/_CPMenuManager.j index 205e8cd96..072e1d680 100644 --- a/AppKit/CPMenu/_CPMenuManager.j +++ b/AppKit/CPMenu/_CPMenuManager.j @@ -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; }