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);
|
||||
NS_RELEASE(mouseContent);
|
||||
}
|
||||
|
||||
if (nsnull != mCurrentTarget) {
|
||||
ret = mCurrentTarget->HandleEvent(aPresContext, &event, aStatus);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -412,6 +412,10 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
|||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||
NS_RELEASE(mouseContent);
|
||||
}
|
||||
|
||||
if (nsnull != mCurrentTarget) {
|
||||
ret = mCurrentTarget->HandleEvent(aPresContext, &event, aStatus);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -662,8 +662,7 @@ nsToolboxFrame :: HandleEvent ( nsIPresContext& aPresContext,
|
|||
|
||||
switch ( aEvent->message ) {
|
||||
|
||||
// case NS_MOUSE_LEFT_CLICK:
|
||||
case NS_MOUSE_LEFT_BUTTON_UP:
|
||||
case NS_MOUSE_LEFT_CLICK:
|
||||
OnMouseLeftClick ( aEvent->point );
|
||||
break;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче