Focus new tag when popup is opened

This commit is contained in:
Abe Jellinek 2024-01-16 13:58:12 -05:00 • committed by Dan Stillman
parent 6948252e32
commit fbbe9625fc

View file

@ -873,12 +873,14 @@ class ReaderInstance {
let rect = this._iframe.getBoundingClientRect();
x += rect.left;
y += rect.top;
setTimeout(() => menupopup.openPopup(null, 'before_start', x, y, true));
tagsbox.mode = 'edit';
tagsbox.item = item;
if (tagsbox.mode == 'edit' && tagsbox.count == 0) {
tagsbox.newTag();
}
menupopup.openPopup(null, 'before_start', x, y, true);
setTimeout(() => {
if (tagsbox.count == 0) {
tagsbox.newTag();
}
});
}
async _openContextMenu({ x, y, itemGroups }) {