mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	open links in new tab without activation
This commit is contained in:
		| @@ -78,7 +78,6 @@ function goToLink(e) { | ||||
|     if (notePath) { | ||||
|         if ((e.which === 1 && e.ctrlKey) || e.which === 2) { | ||||
|             const tabContext = appContext.tabManager.openEmptyTab(); | ||||
|             appContext.tabManager.activateTab(tabContext.tabId); | ||||
|             tabContext.setNote(notePath); | ||||
|         } | ||||
|         else if (e.which === 1) { | ||||
| @@ -142,7 +141,6 @@ $(document).on('mousedown', '.note-detail-text a', function (e) { | ||||
|         if (notePath) { | ||||
|             const tabContext = appContext.tabManager.openEmptyTab(); | ||||
|             tabContext.setNote(notePath); | ||||
|             appContext.tabManager.activateTab(tabContext.tabId); | ||||
|         } | ||||
|         else { | ||||
|             const address = $link.attr('href'); | ||||
|   | ||||
| @@ -109,7 +109,6 @@ class TreeContextMenu { | ||||
|  | ||||
|         if (command === 'openInTab') { | ||||
|             const tabContext = appContext.tabManager.openEmptyTab(); | ||||
|             appContext.tabManager.activateTab(tabContext.tabId); | ||||
|             tabContext.setNote(notePath); | ||||
|         } | ||||
|         else if (command === "insertNoteAfter") { | ||||
|   | ||||
| @@ -84,7 +84,6 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|                         const tabContext = appContext.tabManager.openEmptyTab(); | ||||
|                         const notePath = treeService.getNotePath(node); | ||||
|                         tabContext.setNote(notePath); | ||||
|                         appContext.tabManager.activateTab(tabContext.tabId); | ||||
|                     } | ||||
|                     else { | ||||
|                         node.setActive(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user