23872, fixing double click behaviour in profile manager

git-svn-id: svn://10.0.0.236/trunk@57753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rgoodger%ihug.co.nz
2000-01-14 00:17:48 +00:00
parent 1264a6fd1c
commit d76fd3b5d9
2 changed files with 10 additions and 1 deletions

View File

@@ -268,3 +268,12 @@ function HandleKeyEvent( aEvent )
}
}
function HandleClickEvent( aEvent )
{
if( aEvent.clickCount == 2 ) {
if( aEvent.target.nodeName.toLowerCase() == "treecell" )
return onStart();
}
else
return showSelection(aEvent.target.parentNode.parentNode);
}

View File

@@ -90,7 +90,7 @@
<spring style="height: 1px;"/>
<tree
id="profiles" class="inset" style="height: 175px; width: 220px;" flex="100%"
onclick="if( event.clickCount == 2 ) return onStart(); else return showSelection(event.target.parentNode.parentNode);"
onclick="HandleClickEvent( event );"
onkeypress="HandleKeyEvent( event );">
<treehead>
<treerow>