commit 623e1ca9a83f963f7668d584844e51022d761eee
parent a7c2506755dbdcdb741fc900d1897890b0966f8c
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 18 Aug 2015 11:10:01 -0400
Merge pull request #831 from simpzan/4.0
make items tree column focused when select a item by running zotero://select/items/xxx.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -1983,7 +1983,9 @@ var ZoteroPane = new function()
Zotero.debug("Told to select in library; switching to library");
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);
if (!selected) {
if (item.deleted) {