mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fix right click delete (or other action) when other node is activated
This commit is contained in:
		
							parent
							
								
									4858f0bec6
								
							
						
					
					
						commit
						5cc91c64a3
					
				| @ -126,6 +126,13 @@ const contextMenuOptions = { | ||||
| 
 | ||||
|         // Activate node on right-click
 | ||||
|         node.setActive(); | ||||
| 
 | ||||
|         // right click resets selection to just this node
 | ||||
|         // this is important when e.g. you right click on a note while having different note active
 | ||||
|         // and then click on delete - obviously you want to delete only that one right-clicked
 | ||||
|         node.setSelected(true); | ||||
|         treeService.clearSelectedNodes(); | ||||
| 
 | ||||
|         // Disable tree keyboard handling
 | ||||
|         ui.menu.prevKeyboard = node.tree.options.keyboard; | ||||
|         node.tree.options.keyboard = false; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner