Making the mac focus event flow the same as windows. This is a Good Thing.

This commit is contained in:
saari%netscape.com 1999-12-01 09:07:52 +00:00
parent a23936ccd7
commit 459d3260eb

View File

@ -1133,8 +1133,9 @@ PRBool nsMacEventHandler::HandleMouseDownEvent(
nsMouseEvent mouseActivateEvent;
ConvertOSEventToMouseEvent(aOSEvent, mouseActivateEvent, NS_MOUSE_ACTIVATE);
widgetHit->DispatchMouseEvent(mouseActivateEvent);
if( mouseActivateEvent.acceptActivation )
gEventDispatchHandler.SetFocus(widgetHit);
//if( mouseActivateEvent.acceptActivation )
//gEventDispatchHandler.SetFocus(widgetHit);
//gEventDispatchHandler.Special(widgetHit);
}
// dispatch the event