зеркало из https://github.com/mozilla/pjs.git
Forgot to remove some obsolete bubbling registration on menus.
This commit is contained in:
Родитель
bf09e527bc
Коммит
98d91149c9
|
@ -117,11 +117,6 @@ nsMenuBarFrame::Init(nsIPresContext& aPresContext,
|
||||||
target->AddEventListener("keydown", domEventListener, PR_TRUE);
|
target->AddEventListener("keydown", domEventListener, PR_TRUE);
|
||||||
target->AddEventListener("keyup", domEventListener, PR_TRUE);
|
target->AddEventListener("keyup", domEventListener, PR_TRUE);
|
||||||
|
|
||||||
// The menu bar should also observe all mouse events that happen within it
|
|
||||||
// (which it can do using bubbling).
|
|
||||||
target->AddEventListenerByIID((nsIDOMMouseListener*)mMenuBarListener, nsIDOMMouseListener::GetIID());
|
|
||||||
target->AddEventListenerByIID((nsIDOMMouseMotionListener*)mMenuBarListener, nsIDOMMouseMotionListener::GetIID());
|
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче