diff --git a/chrome/content/zotero/integration/editBibliographyDialog.js b/chrome/content/zotero/integration/editBibliographyDialog.js index f51c98fc38..5d0ced90ae 100644 --- a/chrome/content/zotero/integration/editBibliographyDialog.js +++ b/chrome/content/zotero/integration/editBibliographyDialog.js @@ -118,6 +118,13 @@ var Zotero_Bibliography_Dialog = new function () { _updatePreview(); } + // When reference list is focused and nothing is selected, select the first item + this.listItemFocused = function () { + if (!_itemList.selectedItems.length) { + _itemList.selectedIndex = 0; + } + }; + /** * Called when an item in the reference list is clicked */ diff --git a/chrome/content/zotero/integration/editBibliographyDialog.xhtml b/chrome/content/zotero/integration/editBibliographyDialog.xhtml index 524576a119..5f9ba73af0 100644 --- a/chrome/content/zotero/integration/editBibliographyDialog.xhtml +++ b/chrome/content/zotero/integration/editBibliographyDialog.xhtml @@ -58,7 +58,7 @@ Services.scriptloader.loadSubScript("chrome://zotero/content/integration/editBibliographyDialog.js", this); - + @@ -75,18 +75,19 @@ - - + + - -