From 0ce8d1e7e8ccf47f5131aea88e6d8fb7ec49fda0 Mon Sep 17 00:00:00 2001 From: azivner Date: Sat, 6 Oct 2018 23:16:43 +0200 Subject: [PATCH] ctrl+del already has a standard behavior so removing it as a shortcut to delete note --- src/public/javascripts/services/tree.js | 6 ------ src/public/javascripts/services/tree_context_menu.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js index 58a4c859b..c37c3b037 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.js index 2a3b24312..d2e5ef752 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 Ctrl+O", cmd: "insertNoteHere", uiIcon: "ui-icon-plus"}, {title: "Insert child note Ctrl+P", cmd: "insertChildNote", uiIcon: "ui-icon-plus"}, - {title: "Delete Ctrl+Del", cmd: "delete", uiIcon: "ui-icon-trash"}, + {title: "Delete", cmd: "delete", uiIcon: "ui-icon-trash"}, {title: "----"}, {title: "Edit branch prefix F2", cmd: "editBranchPrefix", uiIcon: "ui-icon-pencil"}, {title: "----"},