Fix New Item menu when tag pane is focused

Regression from 5791ffeb1
This commit is contained in:
Dan Stillman 2019-11-12 01:37:57 -05:00
parent 18d7e833c9
commit b0eb048bce

View file

@ -231,15 +231,18 @@ var ZoteroItemPane = new function() {
switch (tabBox.selectedIndex) { switch (tabBox.selectedIndex) {
case 0: case 0:
var box = _itemBox; var box = _itemBox;
if (box) {
yield box.blurOpenField();
}
break; break;
case 2: case 2:
var box = _tagsBox.current; var box = _tagsBox.current;
if (box) {
box.blurOpenField();
}
break; break;
} }
if (box) {
yield box.blurOpenField();
}
}); });