open menu bar menus directly

This commit is contained in:
Klaas Pieter Annema committed 2011-04-20 08:58:30 +02:00
1 parent 39459c9a44
commit dc264231c8
1 file changed
+8 -2
+8 -2
View File
@@ -243,9 +243,15 @@ var STICKY_TIME_INTERVAL = 500,
// Close the current menu item because we are going to select a new one after a short delay
[self showMenu:nil fromMenu:activeMenu atPoint:CGPointMakeZero()];
_showTimerID = setTimeout(function() {
if (![activeMenuContainer isMenuBar])
{
_showTimerID = setTimeout(function() {
[self showMenu:[activeItem submenu] fromMenu:[activeItem menu] atPoint:newMenuOrigin];
}, 250);
}
else
[self showMenu:[activeItem submenu] fromMenu:[activeItem menu] atPoint:newMenuOrigin];
}, 250);
}
}