mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	feat(command_palette): hide on command execution
This commit is contained in:
		| @@ -106,12 +106,13 @@ export default class JumpToNoteDialog extends BasicWidget { | |||||||
|  |  | ||||||
|                 appContext.tabManager.getActiveContext()?.setNote(suggestion.notePath); |                 appContext.tabManager.getActiveContext()?.setNote(suggestion.notePath); | ||||||
|             }) |             }) | ||||||
|             .on("autocomplete:commandselected", async function (event, suggestion, dataset) { |             .on("autocomplete:commandselected", async (event, suggestion, dataset) => { | ||||||
|                 if (!suggestion.commandId) { |                 if (!suggestion.commandId) { | ||||||
|                     return false; |                     return false; | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 await commandRegistry.executeCommand(suggestion.commandId); |                 await commandRegistry.executeCommand(suggestion.commandId); | ||||||
|  |                 this.modal.hide(); | ||||||
|             }); |             }); | ||||||
|  |  | ||||||
|         // if you open the Jump To dialog soon after using it previously, it can often mean that you |         // if you open the Jump To dialog soon after using it previously, it can often mean that you | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user