From 6051ef09d0a77f4cd2e6f66aab05142391105969 Mon Sep 17 00:00:00 2001 From: simpzan Date: Tue, 18 Aug 2015 19:31:30 +0800 Subject: [PATCH] make items tree column focused when select a item by running zotero://select/items/xxx. --- chrome/content/zotero/zoteroPane.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index ec0da47fdb..8713d189ec 100644 --- 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) {