make items tree column focused when select a item by running

zotero://select/items/xxx.
This commit is contained in:
simpzan 2015-08-18 19:31:30 +08:00
parent a7c2506755
commit 6051ef09d0

View file

@ -1983,6 +1983,8 @@ var ZoteroPane = new function()
Zotero.debug("Told to select in library; switching to library"); Zotero.debug("Told to select in library; switching to library");
this.collectionsView.selectLibrary(item.libraryID); this.collectionsView.selectLibrary(item.libraryID);
} }
// Focus the items column before selecting the item.
document.getElementById('zotero-items-tree').focus();
var selected = this.itemsView.selectItem(itemID, expand); var selected = this.itemsView.selectItem(itemID, expand);
if (!selected) { if (!selected) {