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

This commit is contained in:
azivner
2017-12-17 16:40:38 -05:00
parent 42dfbaa986
commit eee06a4b90
2 changed files with 6 additions and 4 deletions

View File

@@ -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,