From aa114453e4415ba89429e9f86e066ed9a159dde3 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 7 Jul 2000 01:35:23 +0000 Subject: [PATCH] If the click is not on on item in the dropdown and not in the comboxbox display area then the click count is set to zero so the JS event doesn't get fired. If it IS over the combobox display area then the JS event does get fired. b=40382 r=pollmann git-svn-id: svn://10.0.0.236/trunk@73804 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsListControlFrame.cpp | 2 +- mozilla/layout/html/forms/src/nsGfxListControlFrame.cpp | 2 +- mozilla/layout/html/forms/src/nsListControlFrame.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/layout/forms/nsListControlFrame.cpp b/mozilla/layout/forms/nsListControlFrame.cpp index 8d338aede50..c5f41d5f1d5 100644 --- a/mozilla/layout/forms/nsListControlFrame.cpp +++ b/mozilla/layout/forms/nsListControlFrame.cpp @@ -2833,7 +2833,7 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent) mouseEvent->clickCount = 1; } else { // the click was out side of the select or its dropdown - mouseEvent->clickCount = 0; + mouseEvent->clickCount = IsClickingInCombobox(aMouseEvent)?1:0; } } else { REFLOW_DEBUG_MSG(">>>>>> Didn't find"); diff --git a/mozilla/layout/html/forms/src/nsGfxListControlFrame.cpp b/mozilla/layout/html/forms/src/nsGfxListControlFrame.cpp index afe9ad70885..01396be15f7 100644 --- a/mozilla/layout/html/forms/src/nsGfxListControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsGfxListControlFrame.cpp @@ -3041,7 +3041,7 @@ nsGfxListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent) mouseEvent->clickCount = 1; } else { // the click was out side of the select or its dropdown - mouseEvent->clickCount = 0; + mouseEvent->clickCount = IsClickingInCombobox(aMouseEvent)?1:0; } } else if (mButtonDown) { mButtonDown = PR_FALSE; diff --git a/mozilla/layout/html/forms/src/nsListControlFrame.cpp b/mozilla/layout/html/forms/src/nsListControlFrame.cpp index 8d338aede50..c5f41d5f1d5 100644 --- a/mozilla/layout/html/forms/src/nsListControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsListControlFrame.cpp @@ -2833,7 +2833,7 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent) mouseEvent->clickCount = 1; } else { // the click was out side of the select or its dropdown - mouseEvent->clickCount = 0; + mouseEvent->clickCount = IsClickingInCombobox(aMouseEvent)?1:0; } } else { REFLOW_DEBUG_MSG(">>>>>> Didn't find");