mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-25 22:29:25 -05:00
fixed CTRL-ALT-P shortcut
This commit is contained in:
+6
-3
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -522,6 +522,8 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection
|
||||
clearSelectedNodes(); // to unmark previously active node
|
||||
|
||||
infoService.showMessage("Created!");
|
||||
|
||||
return {note, branch};
|
||||
}
|
||||
|
||||
/* If first element is heading, parse it out and use it as a new heading. */
|
||||
|
||||
Reference in New Issue
Block a user