mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix keyboard shortcut setup on mobile
This commit is contained in:
		| @@ -136,11 +136,13 @@ function randomString(len) { | ||||
| } | ||||
|  | ||||
| function bindShortcut(keyboardShortcut, handler) { | ||||
|     $(document).bind('keydown', keyboardShortcut, e => { | ||||
|         handler(); | ||||
|     if (isDesktop()) { | ||||
|         $(document).bind('keydown', keyboardShortcut, e => { | ||||
|             handler(); | ||||
|  | ||||
|         e.preventDefault(); | ||||
|     }); | ||||
|             e.preventDefault(); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
|  | ||||
| function isMobile() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user