Bug 34418: image input can't be submitted by space or enter; r=harishd

This commit is contained in:
pollmann%netscape.com 2000-08-03 22:11:57 +00:00
Родитель 605b1fbee7
Коммит 91e1eed21f
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;