diff --git a/layout/forms/nsFormControlFrame.cpp b/layout/forms/nsFormControlFrame.cpp index e8526c95afe..172f7d89d95 100644 --- a/layout/forms/nsFormControlFrame.cpp +++ b/layout/forms/nsFormControlFrame.cpp @@ -430,9 +430,9 @@ nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext, if (NS_VK_RETURN == keyEvent->keyCode) { EnterPressed(aPresContext); } - else if (NS_VK_SPACE == keyEvent->keyCode) { - MouseClicked(&aPresContext); - } + //else if (NS_VK_SPACE == keyEvent->keyCode) { + // MouseClicked(&aPresContext); + //} } break; } diff --git a/layout/html/forms/src/nsFormControlFrame.cpp b/layout/html/forms/src/nsFormControlFrame.cpp index e8526c95afe..172f7d89d95 100644 --- a/layout/html/forms/src/nsFormControlFrame.cpp +++ b/layout/html/forms/src/nsFormControlFrame.cpp @@ -430,9 +430,9 @@ nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext, if (NS_VK_RETURN == keyEvent->keyCode) { EnterPressed(aPresContext); } - else if (NS_VK_SPACE == keyEvent->keyCode) { - MouseClicked(&aPresContext); - } + //else if (NS_VK_SPACE == keyEvent->keyCode) { + // MouseClicked(&aPresContext); + //} } break; }