mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 01:01:26 +08:00
ctrl+insert now works globally - i.e. inside editor
This commit is contained in:
parent
42dfbaa986
commit
eee06a4b90
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue