mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	enter on title will put focus on editor
This commit is contained in:
		
							parent
							
								
									edc9a1a2bf
								
							
						
					
					
						commit
						b5baab056c
					
				| @ -90,6 +90,8 @@ $(document).bind('keydown', "ctrl+shift+down", () => { | |||||||
|     return false; |     return false; | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
|  | $("#note-title").bind('keydown', 'return', () => $("#note-detail").focus()); | ||||||
|  | 
 | ||||||
| $(window).on('beforeunload', () => { | $(window).on('beforeunload', () => { | ||||||
|     // this makes sure that when user e.g. reloads the page or navigates away from the page, the note's content is saved
 |     // this makes sure that when user e.g. reloads the page or navigates away from the page, the note's content is saved
 | ||||||
|     // this sends the request asynchronously and doesn't wait for result
 |     // this sends the request asynchronously and doesn't wait for result
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner