Fix a benign citation dialog error when pressing ESC to quit

This commit is contained in:
Adomas Venčkauskas 2020-02-11 15:24:30 +02:00
parent 43a38d31a7
commit 1db3fc0b49

View file

@ -1181,6 +1181,10 @@ var Zotero_QuickFormat = new function () {
if(!(yield _bubbleizeSelected()) && !_getEditorContent()) {
_accept();
}
} else if (keyCode === event.DOM_VK_ESCAPE) {
// Handled in the event handler up, but we have to cancel it here
// so that we do not issue another _quickFormat call
return;
} else if(keyCode === event.DOM_VK_TAB || event.charCode === 59 /* ; */) {
event.preventDefault();
_bubbleizeSelected();