mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	moved dialog entrypoints into bootstrap, fixes
This commit is contained in:
		| @@ -236,6 +236,14 @@ function randomString(len) { | ||||
|     return text; | ||||
| } | ||||
|  | ||||
| function bindShortcut(keyboardShortcut, handler) { | ||||
|     $(document).bind('keydown', keyboardShortcut, e => { | ||||
|         handler(); | ||||
|  | ||||
|         e.preventDefault(); | ||||
|     }); | ||||
| } | ||||
|  | ||||
| export default { | ||||
|     reloadApp, | ||||
|     showMessage, | ||||
| @@ -266,5 +274,6 @@ export default { | ||||
|     getHost, | ||||
|     download, | ||||
|     toObject, | ||||
|     randomString | ||||
|     randomString, | ||||
|     bindShortcut | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user