unpatch leaf's hack in 1.73 since form submission now works correctly. Mac now once again submits the form when return is pressed.

This commit is contained in:
pinkerton%netscape.com 1999-06-03 18:05:40 +00:00
parent 147e8c0ae7
commit 14062a8586
2 changed files with 4 additions and 6 deletions

View File

@ -619,9 +619,8 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
if (NS_KEY_EVENT == aEvent->eventStructType) {
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
if (NS_VK_RETURN == keyEvent->keyCode) {
// XXX breaking the mac to fix the tree, go figure
// EnterPressed(aPresContext);
}
EnterPressed(aPresContext);
}
else if (NS_VK_SPACE == keyEvent->keyCode) {
MouseClicked(&aPresContext);
}

View File

@ -619,9 +619,8 @@ NS_METHOD nsFormControlFrame::HandleEvent(nsIPresContext& aPresContext,
if (NS_KEY_EVENT == aEvent->eventStructType) {
nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent;
if (NS_VK_RETURN == keyEvent->keyCode) {
// XXX breaking the mac to fix the tree, go figure
// EnterPressed(aPresContext);
}
EnterPressed(aPresContext);
}
else if (NS_VK_SPACE == keyEvent->keyCode) {
MouseClicked(&aPresContext);
}