Updating mozilla to DOM Level 2 events support. Fixes for bug 34722, 35378, 8411, 10330, plus some others that weren't filed.

This commit is contained in:
joki%netscape.com 2006-07-27 14:50:36 +00:00
parent a74dade724
commit fa3292facf
4 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ function Init()
function OnClick(event) function OnClick(event)
{ {
if( event.type == "click" && if( event.type == "click" &&
( event.button != 1 || event.clickCount != 2 ) ) ( event.button != 1 || event.detail != 2 ) )
return false; return false;
if( event.type == "keypress" && event.which != 13 ) if( event.type == "keypress" && event.which != 13 )
return false; return false;

View File

@ -228,7 +228,7 @@ function Destruct() {
function openURL(event, root) function openURL(event, root)
{ {
if( event.type == "click" && if( event.type == "click" &&
( event.button != 1 || event.clickCount != 2 ) ) ( event.button != 1 || event.detail != 2 ) )
return false; return false;
else if( event.type == "keypress" && event.which != 13 ) else if( event.type == "keypress" && event.which != 13 )
return false; return false;

View File

@ -42,7 +42,7 @@
</popupset> </popupset>
<tree id="internetresultstree" ref="" flex="100%" datasources="rdf:internetsearch" context="contextual" <tree id="internetresultstree" ref="" flex="100%" datasources="rdf:internetsearch" context="contextual"
onclick="if (event.clickCount == 2) return searchResultsOpenURL(event, event.target.parentNode.parentNode); else return doResultClick(event.target.parentNode.parentNode);"> onclick="if (event.detail == 2) return searchResultsOpenURL(event, event.target.parentNode.parentNode); else return doResultClick(event.target.parentNode.parentNode);">
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/> <treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
<treecol id="PageRankColumn" rdf:resource="http://home.netscape.com/NC-rdf#PageRank" <treecol id="PageRankColumn" rdf:resource="http://home.netscape.com/NC-rdf#PageRank"

View File

@ -771,7 +771,7 @@ function sidebarOpenURL(event, treeitem, root)
mClickCount = 1; mClickCount = 1;
} }
if ((event.button != 1) || (event.clickCount != mClickCount)) if ((event.button != 1) || (event.detail != mClickCount))
return(false); return(false);
if (treeitem.getAttribute("container") == "true") if (treeitem.getAttribute("container") == "true")