mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
fixed CTRL-ALT-P shortcut
This commit is contained in:
9
src/public/javascripts/services/bootstrap.js
vendored
9
src/public/javascripts/services/bootstrap.js
vendored
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user