Fix mouse exit so it goes to the targetted view rather than the view the mouse may or may not be over as it leaves the main widget. b=144880 r=ccarlen@netscape.com sr=roc+moz@cs.cmu.edu a=asa@mozilla.org

This commit is contained in:
locka%iol.ie 2003-02-06 12:50:35 +00:00
parent 8722e3bb55
commit f27ea2fe10

View File

@ -2152,7 +2152,9 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
GetViewObserver(*getter_AddRefs(obs));
// accessibility events and key events are dispatched directly to the focused view
if (aEvent->eventStructType == NS_ACCESSIBLE_EVENT || aEvent->message == NS_CONTEXTMENU_KEY
if (aEvent->eventStructType == NS_ACCESSIBLE_EVENT
|| aEvent->message == NS_CONTEXTMENU_KEY
|| aEvent->message == NS_MOUSE_EXIT
|| NS_IS_KEY_EVENT(aEvent) || NS_IS_IME_EVENT(aEvent) || NS_IS_FOCUS_EVENT(aEvent)) {
nsEventStatus status = nsEventStatus_eIgnore;
if (obs) {