Double click on text should only select a word if not a link in Compsoser, b=133308, r=brade, sr=kin, a=asa

This commit is contained in:
cmanske%netscape.com 2002-03-26 20:52:06 +00:00
parent 5ac9ddf13c
commit 8de1b67272

View File

@ -1248,7 +1248,24 @@ function GetParentTableCell(element)
function EditorDblClick(event)
{
goDoCommand("cmd_objectProperties");
if (event.target)
{
// Only bring up properties if clicked on an element or selected link
var element;
try {
element = event.target.QueryInterface(Components.interfaces.nsIDOMElement);
} catch (e) {}
// We use "href" instead of "a" to not be fooled by named anchor
if (!element)
element = editorShell.GetSelectedElement("href");
if (element)
{
goDoCommand("cmd_objectProperties");
event.preventDefault();
}
}
}
function EditorClick(event)