commit 954677636ef1bd0dbdb69612550d33a07b50b35c parent 0a0283483ee4440ef87abc308edcc3c2a68f58c1 Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 13 Jun 2016 22:59:49 -0400 Fix hang if another key is pressed after Enter in Quick Format dialog Diffstat:
| M | chrome/content/zotero/integration/quickFormat.js | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -1050,6 +1050,12 @@ var Zotero_QuickFormat = new function () { * Handle return or escape */ function _onQuickSearchKeyPress(event) { + // Prevent hang if another key is pressed after Enter + // https://forums.zotero.org/discussion/59157/ + if (accepted) { + event.preventDefault(); + return; + } if(qfGuidance) qfGuidance.hide(); var keyCode = event.keyCode;