mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
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:
parent
a74dade724
commit
fa3292facf
@ -62,7 +62,7 @@ function Init()
|
||||
function OnClick(event)
|
||||
{
|
||||
if( event.type == "click" &&
|
||||
( event.button != 1 || event.clickCount != 2 ) )
|
||||
( event.button != 1 || event.detail != 2 ) )
|
||||
return false;
|
||||
if( event.type == "keypress" && event.which != 13 )
|
||||
return false;
|
||||
|
@ -228,7 +228,7 @@ function Destruct() {
|
||||
function openURL(event, root)
|
||||
{
|
||||
if( event.type == "click" &&
|
||||
( event.button != 1 || event.clickCount != 2 ) )
|
||||
( event.button != 1 || event.detail != 2 ) )
|
||||
return false;
|
||||
else if( event.type == "keypress" && event.which != 13 )
|
||||
return false;
|
||||
|
@ -42,7 +42,7 @@
|
||||
</popupset>
|
||||
|
||||
<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="PageRankColumn" rdf:resource="http://home.netscape.com/NC-rdf#PageRank"
|
||||
|
@ -771,7 +771,7 @@ function sidebarOpenURL(event, treeitem, root)
|
||||
mClickCount = 1;
|
||||
}
|
||||
|
||||
if ((event.button != 1) || (event.clickCount != mClickCount))
|
||||
if ((event.button != 1) || (event.detail != mClickCount))
|
||||
return(false);
|
||||
|
||||
if (treeitem.getAttribute("container") == "true")
|
||||
|
Loading…
Reference in New Issue
Block a user