Patch by Ziusudra: Fixes navigation in to and out of sub menus with the cursor
keys. Thanks! Closes ticket #5996. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36819 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -505,7 +505,7 @@ BMenu::KeyDown(const char* bytes, int32 numBytes)
|
||||
BMessenger msgr(Supermenu());
|
||||
msgr.SendMessage(Window()->CurrentMessage());
|
||||
} else
|
||||
Supermenu()->_SelectItem(item, false, false);
|
||||
_QuitTracking();
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1512,7 +1512,7 @@ BMenu::_Show(bool selectFirstItem)
|
||||
window->Show();
|
||||
|
||||
if (selectFirstItem)
|
||||
_SelectItem(ItemAt(0));
|
||||
_SelectItem(ItemAt(0), false);
|
||||
|
||||
window->Unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user