mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 457303: make nsXULPopupListener::FireFocusOnTargetContent windows-only r=Enn
This commit is contained in:
parent
54bbd7aa51
commit
86d427158c
@ -247,6 +247,7 @@ nsXULPopupListener::PreLaunchPopup(nsIDOMEvent* aMouseEvent)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifndef NS_CONTEXT_MENU_IS_MOUSEUP
|
||||
nsresult
|
||||
nsXULPopupListener::FireFocusOnTargetContent(nsIDOMNode* aTargetNode)
|
||||
{
|
||||
@ -309,6 +310,7 @@ nsXULPopupListener::FireFocusOnTargetContent(nsIDOMNode* aTargetNode)
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
#endif
|
||||
|
||||
// ClosePopup
|
||||
//
|
||||
|
@ -102,8 +102,10 @@ private:
|
||||
// target.
|
||||
nsresult PreLaunchPopup(nsIDOMEvent* aMouseEvent);
|
||||
|
||||
#ifndef NS_CONTEXT_MENU_IS_MOUSEUP
|
||||
// When a context menu is opened, focus the target of the contextmenu event.
|
||||
nsresult FireFocusOnTargetContent(nsIDOMNode* aTargetNode);
|
||||
#endif
|
||||
|
||||
// |mElement| is the node to which this listener is attached.
|
||||
nsCOMPtr<nsIDOMElement> mElement;
|
||||
|
Loading…
Reference in New Issue
Block a user