Send Click events to frames as well as content.
This commit is contained in:
Родитель
4530de5aa8
Коммит
93c5d84ae7
|
@ -412,6 +412,10 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
||||||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||||
NS_RELEASE(mouseContent);
|
NS_RELEASE(mouseContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nsnull != mCurrentTarget) {
|
||||||
|
ret = mCurrentTarget->HandleEvent(aPresContext, &event, aStatus);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -412,6 +412,10 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
||||||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||||
NS_RELEASE(mouseContent);
|
NS_RELEASE(mouseContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nsnull != mCurrentTarget) {
|
||||||
|
ret = mCurrentTarget->HandleEvent(aPresContext, &event, aStatus);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -662,8 +662,7 @@ nsToolboxFrame :: HandleEvent ( nsIPresContext& aPresContext,
|
||||||
|
|
||||||
switch ( aEvent->message ) {
|
switch ( aEvent->message ) {
|
||||||
|
|
||||||
// case NS_MOUSE_LEFT_CLICK:
|
case NS_MOUSE_LEFT_CLICK:
|
||||||
case NS_MOUSE_LEFT_BUTTON_UP:
|
|
||||||
OnMouseLeftClick ( aEvent->point );
|
OnMouseLeftClick ( aEvent->point );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче