Filtering out form submission in all cases, to get location bar working

for mac. This will be fixed RSN.


git-svn-id: svn://10.0.0.236/trunk@32631 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
leaf%mozilla.org
1999-05-25 23:25:19 +00:00
parent 620b516012
commit 028387ac22
2 changed files with 4 additions and 2 deletions

View File

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

View File

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