From 02ebb6e4f7067ea94ddf776347c9f8cd760b0506 Mon Sep 17 00:00:00 2001 From: Blair Duncan Date: Mon, 23 Apr 2012 23:06:31 -0400 Subject: [PATCH] highlite menu item only if the active item was found --- AppKit/CPMenu/_CPMenuManager.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPMenu/_CPMenuManager.j b/AppKit/CPMenu/_CPMenuManager.j index 00f508274..16554a4a5 100644 --- a/AppKit/CPMenu/_CPMenuManager.j +++ b/AppKit/CPMenu/_CPMenuManager.j @@ -211,7 +211,8 @@ var STICKY_TIME_INTERVAL = 0.5, _lastMouseOverMenuView = nil; } - [activeMenu _highlightItemAtIndex:activeItemIndex]; + if (activeItemIndex != CPNotFound) + [activeMenu _highlightItemAtIndex:activeItemIndex]; if (type === CPMouseMoved || type === CPLeftMouseDragged || type === CPLeftMouseDown || type === CPPeriodic) {