diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js
index 8a49ff9459..b4480c891d 100644
--- a/chrome/content/zotero/integration/quickFormat.js
+++ b/chrome/content/zotero/integration/quickFormat.js
@@ -40,10 +40,11 @@ var Zotero_QuickFormat = new function () {
qfb = document.getElementById("quick-format-entry");
qfbHeight = qfb.scrollHeight;
referencePanel = document.getElementById("quick-format-reference-panel");
- referencePanel.addEventListener("popuphidden", function() {
- window.focus();
- qfe.focus();
- }, false);
+ referencePanel.addEventListener("popuphidden", _refocusQfe, false);
+ referencePanel.addEventListener("popupshown", _refocusQfe, false);
+ referencePanel.addEventListener("focus", _refocusQfe, false);
+ referencePanel.addEventListener("activate", _refocusQfe, false);
+ referencePanel.addEventListener("keypress", _onReferencePanelKeypress, false);
referenceBox = document.getElementById("quick-format-reference-list");
qfiWindow = qfi.contentWindow;
qfiDocument = qfi.contentDocument;
@@ -99,6 +100,11 @@ var Zotero_QuickFormat = new function () {
}
};
+ function _refocusQfe() {
+ window.focus();
+ qfe.focus();
+ }
+
/**
* Gets the content of the text node that the cursor is currently within
*/
@@ -223,12 +229,12 @@ var Zotero_QuickFormat = new function () {
for(var i=0, n=items.length; i
-
+
&zotero.citation.suppressAuthor.label;
-
+
diff --git a/chrome/skin/default/zotero/integration.css b/chrome/skin/default/zotero/integration.css
index 06ff24bd87..272f83011b 100644
--- a/chrome/skin/default/zotero/integration.css
+++ b/chrome/skin/default/zotero/integration.css
@@ -193,12 +193,12 @@ richlistitem[selected="true"] {
background: white;
opacity: 0.9;
-moz-user-focus: ignore;
- height: 37px;
}
#quick-format-reference-list {
margin: 0;
padding: 0;
+ -moz-user-focus: ignore;
}
#citation-properties menulist {