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

git-svn-id: svn://10.0.0.236/trunk@72703 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2000-06-21 00:40:11 +00:00
parent 2a7fc5b929
commit 31acca5c90
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);
}