mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	ctrl+click doesn't activate the node and selects only if it's not selected yet, otherwise deselects
This commit is contained in:
		| @@ -534,13 +534,15 @@ const noteTree = (function() { | ||||
|                 const node = data.node; | ||||
|  | ||||
|                 if (targetType === 'title' || targetType === 'icon') { | ||||
|                     node.setActive(); | ||||
|  | ||||
|                     if (!event.ctrlKey) { | ||||
|                         node.setActive(); | ||||
|                         node.setSelected(true); | ||||
|  | ||||
|                         clearSelectedNodes(); | ||||
|                     } | ||||
|  | ||||
|                     node.setSelected(true); | ||||
|                     else { | ||||
|                         node.setSelected(!node.isSelected()); | ||||
|                     } | ||||
|  | ||||
|                     return false; | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user