Don't throw if the user types before the window finishes initializing
This commit is contained in:
parent
eeacdc7391
commit
2296d1f6ac
1 changed files with 1 additions and 1 deletions
|
@ -978,7 +978,7 @@ var Zotero_QuickFormat = new function () {
|
|||
* Handle return or escape
|
||||
*/
|
||||
function _onQuickSearchKeyPress(event) {
|
||||
qfGuidance.hide();
|
||||
if(qfGuidance) qfGuidance.hide();
|
||||
|
||||
var keyCode = event.keyCode;
|
||||
if(keyCode === event.DOM_VK_RETURN || keyCode === event.DOM_VK_ENTER) {
|
||||
|
|
Loading…
Reference in a new issue