diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js
index e9d43566e3..e87e106ca7 100644
--- a/chrome/content/zotero/elements/attachmentBox.js
+++ b/chrome/content/zotero/elements/attachmentBox.js
@@ -81,6 +81,12 @@
+
+
+
+
`, ['chrome://zotero/locale/zotero.dtd']);
}
@@ -194,6 +200,16 @@
}
});
+ this._id('url').addEventListener('contextmenu', (event) => {
+ this._id('url-menu').openPopupAtScreen(event.screenX, event.screenY, true);
+ });
+
+ let copyMenuitem = this._id('url-menuitem-copy');
+ copyMenuitem.label = Zotero.getString('general.copy');
+ copyMenuitem.addEventListener('command', () => {
+ Zotero.Utilities.Internal.copyTextToClipboard(this.item.getField('url'));
+ });
+
this._notifierID = Zotero.Notifier.registerObserver(this, ['item'], 'attachmentbox');
}
@@ -279,7 +295,9 @@
urlField.setAttribute('hidden', false);
if (this.clickableLink) {
urlField.onclick = function (event) {
- ZoteroPane_Local.loadURI(this.value, event);
+ if (event.button == 0) {
+ ZoteroPane_Local.loadURI(this.value, event);
+ }
};
urlField.className = 'zotero-text-link';
}