fx-compat: Open DOI popup as native menu, too
This commit is contained in:
parent
bcf62e688f
commit
812511e31b
1 changed files with 6 additions and 2 deletions
|
@ -578,8 +578,12 @@
|
|||
th.classList.add("pointer");
|
||||
th.addEventListener('click', event => ZoteroPane_Local.loadURI(doi, event));
|
||||
th.setAttribute("tooltiptext", Zotero.getString('pane.item.viewOnline.tooltip'));
|
||||
valueElement.oncontextmenu = () => {
|
||||
this._id('zotero-doi-menu').openPopup(valueElement);
|
||||
valueElement.oncontextmenu = (event) => {
|
||||
this._id('zotero-doi-menu').openPopupAtScreen(
|
||||
event.screenX + 1,
|
||||
event.screenY + 1,
|
||||
true
|
||||
);
|
||||
};
|
||||
|
||||
var openURLMenuItem = this._id('zotero-doi-menu-view-online');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue