Prevent error when itemsView hasn't been initialized

This commit is contained in:
Abe Jellinek 2024-01-10 11:01:33 -05:00 committed by Dan Stillman
parent 64b8068504
commit f938445271

View file

@ -2745,7 +2745,7 @@ var ZoteroPane = new function()
this.search(); this.search();
} }
else { else {
this.itemsView.focus(); this.itemsView?.focus();
} }
} }
else if (event.keyCode == event.DOM_VK_RETURN) { else if (event.keyCode == event.DOM_VK_RETURN) {