Bug 25300: Enable activation of buttons by the keyboard (space or enter) r=nisheeth

This commit is contained in:
pollmann@netscape.com
2000-06-21 00:40:11 +00:00
parent fa553aba4e
commit 2cb799fb17
6 changed files with 108 additions and 72 deletions

View File

@@ -390,13 +390,7 @@ nsHTMLButtonControlFrame::HandleEvent(nsIPresContext* aPresContext,
return NS_OK;
}
// lets see if the button was clicked. -EDV
switch (aEvent->message) {
case NS_MOUSE_LEFT_CLICK:
MouseClicked(aPresContext);
break;
}
// mouse clicks are handled by content
// we don't want our children to get any events. So just pass it to frame.
return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}