Fix collection and item tree focusing code. Closes #2286

This commit is contained in:
Adomas Venčkauskas 2021-12-22 13:48:41 +02:00
parent af622da78f
commit 5dabe390a2

View file

@ -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');