Fix for 31727, make submenus inherit the context menu-ness from their parents. Another

great patch from Dean Tessman.


git-svn-id: svn://10.0.0.236/trunk@74975 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com 2000-07-28 00:25:18 +00:00
parent 4e027a7cf0
commit baf08c85bb

View File

@ -584,6 +584,11 @@ nsMenuFrame::OpenMenuInternal(PRBool aActivateFlag)
mMenuOpen = PR_TRUE;
if (menuPopup) {
// inherit whether or not we're a context menu from the parent
PRBool parentIsContextMenu = PR_FALSE;
mMenuParent->GetIsContextMenu(parentIsContextMenu);
menuPopup->SetIsContextMenu(parentIsContextMenu);
// Install a keyboard navigation listener if we're the root of the menu chain.
PRBool onMenuBar = PR_TRUE;
if (mMenuParent)