Focus itemsView when switching to Zotero Pane tab

This commit is contained in:
Martynas Bagdonas 2021-10-27 11:52:02 +03:00
parent 91dfcc96bf
commit a4cf36794e

View file

@ -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