Focus itemsView when switching to Zotero Pane tab
This commit is contained in:
parent
91dfcc96bf
commit
a4cf36794e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue