From 34c9c1362581bc0914d550a49c51c1d5b5fb598f Mon Sep 17 00:00:00 2001 From: Graeme McCutcheon Date: Fri, 26 Aug 2011 18:56:16 +0100 Subject: [PATCH] Bug 682338 - Focus context menu's target on platforms where the context menu is shown on mousedown, not where it's shown on mouseup. r=enndeakin --- content/xul/content/src/nsXULPopupListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/xul/content/src/nsXULPopupListener.cpp b/content/xul/content/src/nsXULPopupListener.cpp index df71b4136e87..3204657a6692 100644 --- a/content/xul/content/src/nsXULPopupListener.cpp +++ b/content/xul/content/src/nsXULPopupListener.cpp @@ -84,7 +84,7 @@ using namespace mozilla; // on win32 and os/2, context menus come up on mouse up. On other platforms, // they appear on mouse down. Certain bits of code care about this difference. -#if !defined(XP_WIN) && !defined(XP_OS2) +#if defined(XP_WIN) || defined(XP_OS2) #define NS_CONTEXT_MENU_IS_MOUSEUP 1 #endif