Fix hang if another key is pressed after Enter in Quick Format dialog
This commit is contained in:
parent
0a0283483e
commit
954677636e
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue