diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index b0b1f4363..a9eeb4536 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -218,7 +218,8 @@ var ZoteroPane = new function() document.getElementById('zotero-splitter').setAttribute('hidden', !visible); if (visible) { - document.getElementById('zotero-pane').click(); + // Focus the quicksearch on pane open + setTimeout("document.getElementById('zotero-tb-search').inputField.select();", 1); } else { document.getElementById('content').setAttribute('collapsed', false); diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 750c1f4b4..82890125f 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -331,6 +331,10 @@ Zotero.ItemTreeView.prototype.notify = function(action, type, ids) } this.rememberSelection(savedSelection); + + if (activeWindow) { + this.selectItem(ids[0]); + } } else { @@ -554,8 +558,9 @@ Zotero.ItemTreeView.prototype.sort = function() } // Hash table of fields for which rows with empty values should be displayed last - // - Not currently used - var emptyFirst = {}; + var emptyFirst = { + title: true + }; function columnSort(a,b) { var cmp;