mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
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:
parent
147e8c0ae7
commit
14062a8586
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user