mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
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:
parent
5ac9ddf13c
commit
8de1b67272
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user