зеркало из https://github.com/mozilla/pjs.git
/m/pub/mozilla/widget/src/mac/nsWindow.cpp
This commit is contained in:
Родитель
137b65f1b8
Коммит
5b9bfd849c
|
@ -887,6 +887,9 @@ NS_IMETHODIMP nsWindow::DispatchEvent(nsGUIEvent* event, nsEventStatus& aStatus)
|
|||
NS_IF_ADDREF(aWidget);
|
||||
|
||||
aStatus = nsEventStatus_eIgnore;
|
||||
|
||||
if (nsnull != mMenuListener)
|
||||
aStatus = mMenuListener->MenuSelected(*event);
|
||||
if (mEventCallback)
|
||||
aStatus = (*mEventCallback)(event);
|
||||
|
||||
|
|
|
@ -1245,6 +1245,9 @@ NS_IMETHODIMP nsWindow::DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus
|
|||
NS_ADDREF(event->widget);
|
||||
|
||||
aStatus = nsEventStatus_eIgnore;
|
||||
|
||||
if (nsnull != mMenuListener)
|
||||
aStatus = mMenuListener->MenuSelected(*event);
|
||||
if (nsnull != mEventCallback) {
|
||||
aStatus = (*mEventCallback)(event);
|
||||
}
|
||||
|
|
|
@ -351,6 +351,9 @@ void nsWindow::InitEvent(nsGUIEvent& event, PRUint32 aEventType, nsPoint* aPoint
|
|||
NS_IMETHODIMP nsWindow::DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus)
|
||||
{
|
||||
aStatus = nsEventStatus_eIgnore;
|
||||
|
||||
if (nsnull != mMenuListener)
|
||||
aStatus = mMenuListener->MenuSelected(*event);
|
||||
if (nsnull != mEventCallback) {
|
||||
aStatus = (*mEventCallback)(event);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче