mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Focus new tag when popup is opened
This commit is contained in:
parent
6948252e32
commit
fbbe9625fc
1 changed files with 6 additions and 4 deletions
|
|
@ -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 }) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue