mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
Making the mac focus event flow the same as windows. This is a Good Thing.
This commit is contained in:
parent
a23936ccd7
commit
459d3260eb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user