From c6beecf00a714083024d2f041bfb85e2ce8e2153 Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Thu, 3 Aug 2000 22:11:57 +0000 Subject: [PATCH] Bug 34418: image input can't be submitted by space or enter; r=harishd git-svn-id: svn://10.0.0.236/trunk@75521 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsHTMLInputElement.cpp | 2 +- mozilla/layout/html/content/src/nsHTMLInputElement.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/content/src/nsHTMLInputElement.cpp b/mozilla/content/html/content/src/nsHTMLInputElement.cpp index b705c567521..8263ed20ca8 100644 --- a/mozilla/content/html/content/src/nsHTMLInputElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLInputElement.cpp @@ -943,7 +943,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext, case NS_FORM_INPUT_BUTTON: case NS_FORM_INPUT_RESET: case NS_FORM_INPUT_SUBMIT: -// case NS_FORM_INPUT_IMAGE: // XXX should we do this for images too? + case NS_FORM_INPUT_IMAGE: // Bug 34418 { nsEventStatus status = nsEventStatus_eIgnore; nsMouseEvent event; diff --git a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp index b705c567521..8263ed20ca8 100644 --- a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp +++ b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp @@ -943,7 +943,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext, case NS_FORM_INPUT_BUTTON: case NS_FORM_INPUT_RESET: case NS_FORM_INPUT_SUBMIT: -// case NS_FORM_INPUT_IMAGE: // XXX should we do this for images too? + case NS_FORM_INPUT_IMAGE: // Bug 34418 { nsEventStatus status = nsEventStatus_eIgnore; nsMouseEvent event;