Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
ctrl+del already has a standard behavior so removing it as a shortcut to delete note
azivner0ce8d1e7e8cc
diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.jsindex 58a4c859b6..c37c3b0374 100644--- a/src/public/javascripts/services/tree.js+++ b/src/public/javascripts/services/tree.js@@ -586,12 +586,6 @@ window.glob.createNoteInto = createNoteInto;utils.bindShortcut('ctrl+p', createNoteInto);-utils.bindShortcut('ctrl+del', () => {- const node = getCurrentNode();-- treeChangesService.deleteNodes([node]);-});-utils.bindShortcut('ctrl+.', scrollToCurrentNote);$(window).bind('hashchange', function() {diff --git a/src/public/javascripts/services/tree_context_menu.js b/src/public/javascripts/services/tree_context_menu.jsindex 2a3b243128..d2e5ef7523 100644--- a/src/public/javascripts/services/tree_context_menu.js+++ b/src/public/javascripts/services/tree_context_menu.js@@ -82,7 +82,7 @@ const contextMenuOptions = {menu: [{title: "Insert note here <kbd>Ctrl+O</kbd>", cmd: "insertNoteHere", uiIcon: "ui-icon-plus"},{title: "Insert child note <kbd>Ctrl+P</kbd>", cmd: "insertChildNote", uiIcon: "ui-icon-plus"},- {title: "Delete <kbd>Ctrl+Del</kbd>", cmd: "delete", uiIcon: "ui-icon-trash"},+ {title: "Delete", cmd: "delete", uiIcon: "ui-icon-trash"},{title: "----"},{title: "Edit branch prefix <kbd>F2</kbd>", cmd: "editBranchPrefix", uiIcon: "ui-icon-pencil"},{title: "----"},