diff --git a/chrome/content/zotero/integration/citationDialog.js b/chrome/content/zotero/integration/citationDialog.js index 349734332f..b552c8aeb2 100644 --- a/chrome/content/zotero/integration/citationDialog.js +++ b/chrome/content/zotero/integration/citationDialog.js @@ -1398,12 +1398,6 @@ const IOManager = { let popup = event.target; if (!["xul:panel"].includes(popup.tagName)) return; IOManager._noRefocusing = false; - // after item details popup closes on Enter, refocus the last input - if (popup.id == "itemDetails" && popup.getAttribute("refocus-input")) { - _id("bubble-input").refocusInput(); - popup.removeAttribute("refocus-input"); - return; - } if (IOManager._focusBeforePanelShow) { IOManager._focusBeforePanelShow.focus(); } diff --git a/chrome/content/zotero/integration/citationDialog/popupHandler.mjs b/chrome/content/zotero/integration/citationDialog/popupHandler.mjs index d26e5f83f2..fd065409f1 100644 --- a/chrome/content/zotero/integration/citationDialog/popupHandler.mjs +++ b/chrome/content/zotero/integration/citationDialog/popupHandler.mjs @@ -183,9 +183,8 @@ export class CitationDialogPopupsHandler { } handleItemDetailsKeypress(event) { - // Enter on a an input will save changes, hide the popup and refocus last input + // Enter on a an input will save changes and hide the popup if (event.key == "Enter" && ["input"].includes(event.target.tagName) && !event.target.getAttribute("type")) { - this._getNode("#itemDetails").setAttribute("refocus-input", true); this._getNode("#itemDetails").hidePopup(); } }