mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
ctrl+del already has a standard behavior so removing it as a shortcut to delete note
This commit is contained in:
parent
b2776954a1
commit
0ce8d1e7e8
@ -586,12 +586,6 @@ window.glob.createNoteInto = createNoteInto;
|
|||||||
|
|
||||||
utils.bindShortcut('ctrl+p', createNoteInto);
|
utils.bindShortcut('ctrl+p', createNoteInto);
|
||||||
|
|
||||||
utils.bindShortcut('ctrl+del', () => {
|
|
||||||
const node = getCurrentNode();
|
|
||||||
|
|
||||||
treeChangesService.deleteNodes([node]);
|
|
||||||
});
|
|
||||||
|
|
||||||
utils.bindShortcut('ctrl+.', scrollToCurrentNote);
|
utils.bindShortcut('ctrl+.', scrollToCurrentNote);
|
||||||
|
|
||||||
$(window).bind('hashchange', function() {
|
$(window).bind('hashchange', function() {
|
||||||
|
@ -82,7 +82,7 @@ const contextMenuOptions = {
|
|||||||
menu: [
|
menu: [
|
||||||
{title: "Insert note here <kbd>Ctrl+O</kbd>", cmd: "insertNoteHere", uiIcon: "ui-icon-plus"},
|
{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: "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: "----"},
|
||||||
{title: "Edit branch prefix <kbd>F2</kbd>", cmd: "editBranchPrefix", uiIcon: "ui-icon-pencil"},
|
{title: "Edit branch prefix <kbd>F2</kbd>", cmd: "editBranchPrefix", uiIcon: "ui-icon-pencil"},
|
||||||
{title: "----"},
|
{title: "----"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user