Fix hang if another key is pressed after Enter in Quick Format dialog

This commit is contained in:
Dan Stillman 2016-06-13 22:59:49 -04:00
parent 0a0283483e
commit 954677636e

View file

@ -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;