mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	CTRL+ENTER on note in tree pane switches to the editor
This commit is contained in:
		
							parent
							
								
									de9bab1181
								
							
						
					
					
						commit
						da2cd57428
					
				@ -4,6 +4,7 @@ const noteTree = (function() {
 | 
			
		||||
    const treeEl = $("#tree");
 | 
			
		||||
    const parentListEl = $("#parent-list");
 | 
			
		||||
    const parentListListEl = $("#parent-list-list");
 | 
			
		||||
    const noteDetailEl = $("#note-detail");
 | 
			
		||||
 | 
			
		||||
    let startNotePath = null;
 | 
			
		||||
    let notesTreeMap = {};
 | 
			
		||||
@ -453,6 +454,9 @@ const noteTree = (function() {
 | 
			
		||||
 | 
			
		||||
                return false;
 | 
			
		||||
            },
 | 
			
		||||
            "ctrl+return": node => {
 | 
			
		||||
                noteDetailEl.focus();
 | 
			
		||||
            },
 | 
			
		||||
            // code below shouldn't be necessary normally, however there's some problem with interaction with context menu plugin
 | 
			
		||||
            // after opening context menu, standard shortcuts don't work, but they are detected here
 | 
			
		||||
            // so we essentially takeover the standard handling with our implementation.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user