fixed CTRL-ALT-P shortcut

This commit is contained in:
azivner
2018-10-15 23:45:37 +02:00
parent 209551a205
commit 04af8a3a96
4 changed files with 13 additions and 17 deletions

View File

@@ -90,10 +90,13 @@ if (utils.isElectron()) {
await treeService.activateNote(parentNoteId);
setTimeout(() => {
const node = treeService.getCurrentNode();
setTimeout(async () => {
const parentNode = treeService.getCurrentNode();
const {note} = await treeService.createNote(parentNode, parentNode.data.noteId, 'into', parentNode.data.isProtected);
await treeService.activateNote(note.noteId);
treeService.createNote(node, node.data.noteId, 'into', node.data.isProtected);
}, 500);
});
}