From 2c74b0279d8a0946977d468ea157097427791a5b Mon Sep 17 00:00:00 2001 From: abaevbog Date: Fri, 14 Jun 2024 23:19:48 -0500 Subject: [PATCH] fix focus not moving from reader into contextPane (#4238) If the header is in bibliography entry mode. Instead of trying to focus editable-text of the header (which may not be possible), just focus the next node after the header. --- chrome/content/zotero/elements/contextPane.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/contextPane.js b/chrome/content/zotero/elements/contextPane.js index 235f6a498d..75df9412d3 100644 --- a/chrome/content/zotero/elements/contextPane.js +++ b/chrome/content/zotero/elements/contextPane.js @@ -317,8 +317,9 @@ if (splitter.getAttribute('state') != 'collapsed') { if (this.mode == "item") { - let header = this._itemPaneDeck.selectedPanel.querySelector("item-pane-header editable-text"); - header.focus(); + let header = this._itemPaneDeck.selectedPanel.querySelector("item-pane-header"); + // Focus the first focusable node after header + Services.focus.moveFocus(window, header, Services.focus.MOVEFOCUS_FORWARD, 0); return true; } else {