Skip to content

Build your personal knowledge base with Trilium Notes

ctrl+insert now works globally - i.e. inside editor

azivnereee06a4b905b
diff --git a/public/javascripts/init.js b/public/javascripts/init.js
index ab36b24411..3fb83f5ffe 100644
--- a/public/javascripts/init.js
+++ b/public/javascripts/init.js
@@ -39,7 +39,6 @@ $(document).bind('keydown', 'ctrl+shift+i', () => {
}
});
-
$(document).bind('keydown', 'ctrl+f', () => {
if (isElectron()) {
const searchInPage = require('electron-in-page-search').default;
diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js
index 1d5174a09d..42eb8b8421 100644
--- a/public/javascripts/note_tree.js
+++ b/public/javascripts/note_tree.js
@@ -363,9 +363,6 @@ const noteTree = (function() {
createNote(node, parentNoteId, 'after', isProtected);
},
- "ctrl+insert": node => {
- createNote(node, node.data.note_id, 'into', node.data.is_protected);
- },
"del": node => {
treeChanges.deleteNode(node);
},
@@ -647,6 +644,12 @@ const noteTree = (function() {
showMessage("Created!");
}
+ $(document).bind('keydown', 'ctrl+insert', () => {
+ const node = getCurrentNode();
+
+ createNote(node, node.data.note_id, 'into', node.data.is_protected);
+ });
+
return {
reload,
collapseTree,