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
This commit is contained in:
parent
44cd9847e9
commit
50cd4d0280
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user