Fixing an event handling glitch when mousing into a disabled item from an

enabled item on an XP menu.
This commit is contained in:
hyatt%netscape.com 1999-07-26 01:58:51 +00:00
parent 598dc518f7
commit 9df6522e54

View File

@ -235,11 +235,14 @@ nsMenuFrame::HandleEvent(nsIPresContext& aPresContext,
PRBool isMenuBar = PR_FALSE;
if (mMenuParent) {
mMenuParent->IsMenuBar(isMenuBar);
PRBool cancel = PR_TRUE;
if (isMenuBar) {
mMenuParent->GetIsActive(isActive);
if (!isActive)
mMenuParent->SetCurrentMenuItem(nsnull);
if (isActive) cancel = PR_FALSE;
}
if (cancel)
mMenuParent->SetCurrentMenuItem(nsnull);
}
}
else if (aEvent->message == NS_MOUSE_MOVE && mMenuParent) {