From 7db33b6bc947243c6b037744610c0e9d061773ed Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sat, 29 Jul 2006 05:35:48 +0000 Subject: [PATCH] Option click to save links on mac (55686). r=timeless sr=alecf --- suite/common/contentAreaClick.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/suite/common/contentAreaClick.js b/suite/common/contentAreaClick.js index 3ba1bf4b913b..2d8f75c3dd2b 100644 --- a/suite/common/contentAreaClick.js +++ b/suite/common/contentAreaClick.js @@ -144,7 +144,17 @@ event.preventBubble(); return true; } - if (event.shiftKey) { // if shift is down + var saveModifier = true; + if (pref) { + try { + saveModifier = pref.GetBoolPref("ui.key.saveLink.shift"); + } + catch { + } + } + saveModifier = saveModifier ? event.shiftKey : event.metaKey; + + if (saveModifier) { // if saveModifier is down savePage(href); // save the link return true; }