mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	feat(zen): add keyboard shortcut
This commit is contained in:
		
							parent
							
								
									137aa93451
								
							
						
					
					
						commit
						be39668488
					
				| @ -238,6 +238,12 @@ function getDefaultKeyboardActions() { | |||||||
|             description: t("keyboard_actions.toggle-tray"), |             description: t("keyboard_actions.toggle-tray"), | ||||||
|             scope: "window" |             scope: "window" | ||||||
|         }, |         }, | ||||||
|  |         { | ||||||
|  |             actionName: "toggleZenMode", | ||||||
|  |             defaultShortcuts: ["Alt+Z"], | ||||||
|  |             description: t("keyboard_actions.toggle-zen-mode"), | ||||||
|  |             scope: "window" | ||||||
|  |         }, | ||||||
|         { |         { | ||||||
|             actionName: "firstTab", |             actionName: "firstTab", | ||||||
|             defaultShortcuts: ["CommandOrControl+1"], |             defaultShortcuts: ["CommandOrControl+1"], | ||||||
|  | |||||||
| @ -35,6 +35,7 @@ const enum KeyboardActionNamesEnum { | |||||||
|     activatePreviousTab, |     activatePreviousTab, | ||||||
|     openNewWindow, |     openNewWindow, | ||||||
|     toggleTray, |     toggleTray, | ||||||
|  |     toggleZenMode, | ||||||
|     firstTab, |     firstTab, | ||||||
|     secondTab, |     secondTab, | ||||||
|     thirdTab, |     thirdTab, | ||||||
|  | |||||||
| @ -92,7 +92,8 @@ | |||||||
|     "toggle-book-properties": "Toggle Book Properties", |     "toggle-book-properties": "Toggle Book Properties", | ||||||
|     "toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar", |     "toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar", | ||||||
|     "export-as-pdf": "Exports the current note as a PDF", |     "export-as-pdf": "Exports the current note as a PDF", | ||||||
|     "show-cheatsheet": "Shows a modal with common keyboard operations" |     "show-cheatsheet": "Shows a modal with common keyboard operations", | ||||||
|  |     "toggle-zen-mode": "Enables/disables the zen mode (minimal UI for more focused editing)" | ||||||
|   }, |   }, | ||||||
|   "login": { |   "login": { | ||||||
|     "title": "Login", |     "title": "Login", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran