mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	client: Fix F1 shortcut in mind map (fixes #387)
This commit is contained in:
		
							parent
							
								
									15a041a195
								
							
						
					
					
						commit
						3a87f8bc31
					
				| @ -26,6 +26,15 @@ export default class MindMapWidget extends TypeWidget { | |||||||
|     doRender() { |     doRender() { | ||||||
|         this.$widget = $(TPL); |         this.$widget = $(TPL); | ||||||
|         this.$content = this.$widget.find(".mind-map-container");         |         this.$content = this.$widget.find(".mind-map-container");         | ||||||
|  |         this.$content.on("keydown", (e) => { | ||||||
|  |             /* | ||||||
|  |              * Some global shortcuts interfere with the default shortcuts of the mind map, | ||||||
|  |              * as defined here: https://mind-elixir.com/docs/guides/shortcuts
 | ||||||
|  |              */             | ||||||
|  |             if (e.key === "F1") { | ||||||
|  |                 e.stopPropagation(); | ||||||
|  |             } | ||||||
|  |         }); | ||||||
| 
 | 
 | ||||||
|         super.doRender();         |         super.doRender();         | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran