mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fixing an event handling glitch when mousing into a disabled item from an
enabled item on an XP menu.
This commit is contained in:
parent
598dc518f7
commit
9df6522e54
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user