fixes to multivalued input tabindex

This commit is contained in:
azivner
2018-08-14 13:50:04 +02:00
parent 41a6e777ea
commit f7587de452
4 changed files with 26 additions and 6 deletions

View File

@@ -100,11 +100,15 @@ async function expandToNote(notePath, expandOpts) {
}
}
async function activateNode(notePath) {
async function activateNode(notePath, newNote) {
utils.assertArguments(notePath);
const node = await expandToNote(notePath);
if (newNote) {
noteDetailService.newNoteCreated();
}
// we use noFocus because when we reload the tree because of background changes
// we don't want the reload event to steal focus from whatever was focused before
await node.setActive(true, { noFocus: true });