mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	shortcuts for mac should use cmd instead of ctrl, closes #290
This commit is contained in:
		| @@ -137,6 +137,11 @@ function randomString(len) { | ||||
|  | ||||
| function bindShortcut(keyboardShortcut, handler) { | ||||
|     if (isDesktop()) { | ||||
|         if (isMac()) { | ||||
|             // use CMD (meta) instead of CTRL for all shortcuts | ||||
|             keyboardShortcut = keyboardShortcut.replace("ctrl", "meta"); | ||||
|         } | ||||
|  | ||||
|         $(document).bind('keydown', keyboardShortcut, e => { | ||||
|             handler(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user