hey, here's an idea! let's check in all my changes for a bug fix,

instead of just some of them.  wee!
This commit is contained in:
sspitzer%netscape.com 2003-04-17 00:55:33 +00:00
Родитель f54ce239c6
Коммит 7c15a9871a
1 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -111,10 +111,7 @@
}
}
// Called whenever the user clicks in the content area,
// except when left-clicking on links (special case)
// should always return true for click to go through
function contentAreaClick(event)
function hrefForClickEvent(event)
{
var target = event.target;
var linkNode;
@ -168,7 +165,16 @@
href = makeURLAbsolute(target.baseURI,href);
}
}
return href;
}
// Called whenever the user clicks in the content area,
// except when left-clicking on links (special case)
// should always return true for click to go through
function contentAreaClick(event)
{
var isKeyPress = (event.type == "keypress");
var href = hrefForClickEvent(event);
if (href) {
if (isKeyPress) {
openNewTabWith(href, true, event.shiftKey);