mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	alt-left and alt-right navigation also for electron
This commit is contained in:
		
							parent
							
								
									eddb3ed58a
								
							
						
					
					
						commit
						bb2f47deb2
					
				| @ -678,6 +678,20 @@ const noteTree = (function() { | |||||||
|         activateNode(notePath); |         activateNode(notePath); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  |     if (isElectron()) { | ||||||
|  |         $(document).bind('keydown', 'alt+left', e => { | ||||||
|  |             window.history.back(); | ||||||
|  | 
 | ||||||
|  |             e.preventDefault(); | ||||||
|  |         }); | ||||||
|  | 
 | ||||||
|  |         $(document).bind('keydown', 'alt+right', e => { | ||||||
|  |             window.history.forward(); | ||||||
|  | 
 | ||||||
|  |             e.preventDefault(); | ||||||
|  |         }); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     return { |     return { | ||||||
|         reload, |         reload, | ||||||
|         collapseTree, |         collapseTree, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner