mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	focus and activate should work together
This commit is contained in:
		
							parent
							
								
									3b98428c8c
								
							
						
					
					
						commit
						ac75fd2ca3
					
				| @ -191,9 +191,7 @@ async function activateNote(notePath, noteLoadedListener) { | |||||||
|         noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener); |         noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // we use noFocus because when we reload the tree because of background changes
 |     await node.setActive(true); | ||||||
|     // we don't want the reload event to steal focus from whatever was focused before
 |  | ||||||
|     await node.setActive(true, { noFocus: true }); |  | ||||||
| 
 | 
 | ||||||
|     clearSelectedNodes(); |     clearSelectedNodes(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam