stop opening while right click on attachment's url (#2962)

This commit is contained in:
YFdyh000 2023-01-10 08:36:05 +08:00 committed by GitHub
parent ff38ff5b9d
commit 4fbb89a588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';
}