Skip to content
Snippets Groups Projects
Commit 14801600 authored by cmanske%netscape.com's avatar cmanske%netscape.com
Browse files

Checking for brade: Use PreventDefault instead of returning NS_ERROR_BASE to...

Checking for brade: Use PreventDefault instead of returning NS_ERROR_BASE to stop event processing in mouse listners. b=42510, r=cmanske
parent ad5c9fe0
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ printf("nsEditorShellMouseListener::MouseDown-DoubleClick in cell\n");
mEditorShell->HandleMouseClickOnElement(element, clickCount, x, y, &handled);
if (handled)
return NS_ERROR_BASE; // consumed
mouseEvent->PreventDefault();
}
}
// Should we do this only for "right" mouse button?
......
......@@ -218,7 +218,7 @@ printf("nsEditorShellMouseListener::MouseDown-DoubleClick in cell\n");
mEditorShell->HandleMouseClickOnElement(element, clickCount, x, y, &handled);
if (handled)
return NS_ERROR_BASE; // consumed
mouseEvent->PreventDefault();
}
}
// Should we do this only for "right" mouse button?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment