From 4fbb89a588846c6a2a8cd6660a80973d3fbb261a Mon Sep 17 00:00:00 2001 From: YFdyh000 Date: Tue, 10 Jan 2023 08:36:05 +0800 Subject: [PATCH] stop opening while right click on attachment's url (#2962) --- chrome/content/zotero/bindings/attachmentbox.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml index b959b6720c..5402182755 100644 --- a/chrome/content/zotero/bindings/attachmentbox.xml +++ b/chrome/content/zotero/bindings/attachmentbox.xml @@ -245,7 +245,9 @@ urlField.setAttribute('hidden', false); if (this.clickableLink) { urlField.onclick = function (event) { - ZoteroPane_Local.loadURI(this.value, event) + if (event.button != 2) { + ZoteroPane_Local.loadURI(this.value, event) + } }; urlField.className = 'zotero-text-link'; }