mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	Merge pull request #4240 from SiriusXT/LauncherWidget
Fix right click bookmark bug
This commit is contained in:
		
						commit
						55374ac4d9
					
				| @ -34,7 +34,7 @@ export default class NoteLauncher extends AbstractLauncher { | |||||||
|     async launch(evt) { |     async launch(evt) { | ||||||
|         // await because subclass overrides can be async
 |         // await because subclass overrides can be async
 | ||||||
|         const targetNoteId = await this.getTargetNoteId(); |         const targetNoteId = await this.getTargetNoteId(); | ||||||
|         if (!targetNoteId) { |         if (!targetNoteId || evt.which === 3) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -17,6 +17,9 @@ export default class OpenNoteButtonWidget extends OnClickButtonWidget { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     async launch(evt) { |     async launch(evt) { | ||||||
|  |         if (evt.which === 3) { | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|         const ctrlKey = utils.isCtrlKey(evt); |         const ctrlKey = utils.isCtrlKey(evt); | ||||||
| 
 | 
 | ||||||
|         if ((evt.which === 1 && ctrlKey) || evt.which === 2) { |         if ((evt.which === 1 && ctrlKey) || evt.which === 2) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam