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

@ -39,7 +39,6 @@ $(document).bind('keydown', 'ctrl+shift+i', () => {
} }
}); });
$(document).bind('keydown', 'ctrl+f', () => { $(document).bind('keydown', 'ctrl+f', () => {
if (isElectron()) { if (isElectron()) {
const searchInPage = require('electron-in-page-search').default; const searchInPage = require('electron-in-page-search').default;

View file

@ -363,9 +363,6 @@ const noteTree = (function() {
createNote(node, parentNoteId, 'after', isProtected); createNote(node, parentNoteId, 'after', isProtected);
}, },
"ctrl+insert": node => {
createNote(node, node.data.note_id, 'into', node.data.is_protected);
},
"del": node => { "del": node => {
treeChanges.deleteNode(node); treeChanges.deleteNode(node);
}, },
@ -647,6 +644,12 @@ const noteTree = (function() {
showMessage("Created!"); showMessage("Created!");
} }
$(document).bind('keydown', 'ctrl+insert', () => {
const node = getCurrentNode();
createNote(node, node.data.note_id, 'into', node.data.is_protected);
});
return { return {
reload, reload,
collapseTree, collapseTree,