commit 2296d1f6aca1e18c97de5b0dee3dddd160aaa409
parent eeacdc7391c1d8e468548898e7f8534399428358
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 16 Feb 2012 07:44:02 -0500
Don't throw if the user types before the window finishes initializing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js
@@ -978,7 +978,7 @@ var Zotero_QuickFormat = new function () {
* Handle return or escape
*/
function _onQuickSearchKeyPress(event) {
- qfGuidance.hide();
+ if(qfGuidance) qfGuidance.hide();
var keyCode = event.keyCode;
if(keyCode === event.DOM_VK_RETURN || keyCode === event.DOM_VK_ENTER) {