From 7e823a94a1d77c62cbefb04bbf486f7fe5ee8a4f Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Sat, 29 Jul 2006 05:41:38 +0000 Subject: [PATCH] hey, here's an idea! let's check in all my changes for a bug fix, instead of just some of them. wee! --- suite/common/contentAreaClick.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/suite/common/contentAreaClick.js b/suite/common/contentAreaClick.js index f6429d76a03..18c7db02b35 100644 --- a/suite/common/contentAreaClick.js +++ b/suite/common/contentAreaClick.js @@ -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);