mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	ctrl+insert now works globally - i.e. inside editor
This commit is contained in:
		
							parent
							
								
									42dfbaa986
								
							
						
					
					
						commit
						eee06a4b90
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user