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:
@@ -477,7 +477,7 @@ BMenuBar::_Track(int32 *action, int32 startIndex, bool showMenu)
|
|||||||
// - nonsticky mode and different selection,
|
// - nonsticky mode and different selection,
|
||||||
// - clicked in sticky mode
|
// - clicked in sticky mode
|
||||||
if (fSelected == NULL
|
if (fSelected == NULL
|
||||||
|| (!_IsStickyMode() && menuItem != fSelected)
|
|| (menuItem != fSelected)
|
||||||
|| (buttons != 0 && _IsStickyMode())) {
|
|| (buttons != 0 && _IsStickyMode())) {
|
||||||
if (menuItem->Submenu() != NULL) {
|
if (menuItem->Submenu() != NULL) {
|
||||||
if (menuItem->Submenu()->Window() == NULL) {
|
if (menuItem->Submenu()->Window() == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user