mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	fix(link): popup triggering with bare right click
This commit is contained in:
		
							parent
							
								
									275aacfba9
								
							
						
					
					
						commit
						0f129734ae
					
				@ -316,7 +316,7 @@ function goToLinkExt(evt: MouseEvent | JQuery.ClickEvent | JQuery.MouseDownEvent
 | 
			
		||||
    const openInNewWindow = isLeftClick && evt?.shiftKey && !ctrlKey;
 | 
			
		||||
 | 
			
		||||
    if (notePath) {
 | 
			
		||||
        if (openInPopup) {
 | 
			
		||||
        if (isLeftClick && openInPopup) {
 | 
			
		||||
            appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
 | 
			
		||||
        } else if (openInNewWindow) {
 | 
			
		||||
            appContext.triggerCommand("openInWindow", { notePath, viewScope });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user