From 5dabe390a2fa78e4057c77623eb8728c66e4e983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 22 Dec 2021 13:48:41 +0200 Subject: [PATCH] Fix collection and item tree focusing code. Closes #2286 --- chrome/content/zotero/zoteroPane.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 2094bb0309..cf73a3c671 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -759,7 +759,7 @@ var ZoteroPane = new function() try { switch (command) { case 'library': - this.collectionsView.focus(); + document.getElementById(ZoteroPane.collectionsView.id).focus(); break; case 'quicksearch': document.getElementById('zotero-tb-search').select(); @@ -2228,7 +2228,7 @@ var ZoteroPane = new function() // Focus the items pane if (found) { - document.getElementById('zotero-items-tree').focus(); + document.getElementById(ZoteroPane.itemsView.id).focus(); } Zotero_Tabs.select('zotero-pane');