From 50cd4d0280ab2f8e351d01360dff677f31a7e729 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 18 Feb 2008 13:21:02 +0000 Subject: [PATCH] Patch by Denis Washington: menubars now, like menus, can be navigated without keeping the mouse button pressed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24004 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index d0bfd08559..f75593370f 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -477,7 +477,7 @@ BMenuBar::_Track(int32 *action, int32 startIndex, bool showMenu) // - nonsticky mode and different selection, // - clicked in sticky mode if (fSelected == NULL - || (!_IsStickyMode() && menuItem != fSelected) + || (menuItem != fSelected) || (buttons != 0 && _IsStickyMode())) { if (menuItem->Submenu() != NULL) { if (menuItem->Submenu()->Window() == NULL) {