diff --git a/chrome/content/zotero/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index 58e6ccb69..1a841dd61 100644 --- a/chrome/content/zotero/advancedSearch.js +++ b/chrome/content/zotero/advancedSearch.js @@ -116,6 +116,7 @@ var ZoteroAdvancedSearch = new function() { } lastWin.ZoteroPane.selectItem(item.getID(), false, true); + lastWin.focus(); } } } diff --git a/chrome/content/zotero/advancedSearch.xul b/chrome/content/zotero/advancedSearch.xul index 8371a3c18..1ff0c343c 100644 --- a/chrome/content/zotero/advancedSearch.xul +++ b/chrome/content/zotero/advancedSearch.xul @@ -17,7 +17,8 @@ persist="screenX screenY width height" onload="ZoteroAdvancedSearch.onLoad()" onunload="ZoteroAdvancedSearch.onUnload()" - xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + windowtype="zotero:search">