From a4cf36794e5b661b520febee28e8afd0168fb38f Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 27 Oct 2021 11:52:02 +0300 Subject: [PATCH] Focus itemsView when switching to Zotero Pane tab --- chrome/content/zotero/standalone/standalone.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index babffa8a41..97d295734e 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -54,6 +54,9 @@ const ZoteroStandalone = new function() { { notify: async (action, type, ids, extraData) => { if (action == 'select') { + if (Zotero_Tabs.selectedIndex == 0) { + ZoteroPane.itemsView.focus(); + } // Reader doesn't have tabID yet setTimeout(async () => { // Item and other things might not be loaded yet when reopening tabs