commit 6051ef09d0a77f4cd2e6f66aab05142391105969
parent a7c2506755dbdcdb741fc900d1897890b0966f8c
Author: simpzan <simpzan@gmail.com>
Date: Tue, 18 Aug 2015 19:31:30 +0800
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) {