From fd5b3360808f0b92f25f5068b950f5fe2b1f58f4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 22 Mar 2008 14:47:45 +0000 Subject: [PATCH] Fixes #956, can't create new lines in the abstract by hitting enter key --- chrome/content/zotero/itemPane.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js index 768408075..de8c06fac 100644 --- a/chrome/content/zotero/itemPane.js +++ b/chrome/content/zotero/itemPane.js @@ -1179,9 +1179,6 @@ var ZoteroItemPane = new function() switch (event.keyCode) { case event.DOM_VK_RETURN: - // Prevent blur on textbox above - event.preventDefault(); - var fieldname = target.getAttribute('fieldname'); // Use shift-enter as the save action for the larger fields if ((fieldname == 'abstractNote' || fieldname == 'extra') @@ -1189,7 +1186,12 @@ var ZoteroItemPane = new function() { break; } - else if (fieldname == 'tag') + + // Prevent blur on textbox above + // DEBUG: what happens if this isn't present? + event.preventDefault(); + + if (fieldname == 'tag') { // If last tag row, create new one var row = target.parentNode.parentNode;