Send Click events to frames as well as content.

This commit is contained in:
joki%netscape.com 1999-04-13 00:27:58 +00:00
parent 977968ce0a
commit e594bb9b7c
3 changed files with 9 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;