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:
parent
4e027a7cf0
commit
baf08c85bb
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user