зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6e53484b55
Коммит
14c75f1d2e
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче