feat(zen): add keyboard shortcut

This commit is contained in:
Elian Doran 2025-02-14 19:45:57 +02:00
parent 137aa93451
commit be39668488
No known key found for this signature in database
3 changed files with 9 additions and 1 deletions

View File

@ -238,6 +238,12 @@ function getDefaultKeyboardActions() {
description: t("keyboard_actions.toggle-tray"),
scope: "window"
},
{
actionName: "toggleZenMode",
defaultShortcuts: ["Alt+Z"],
description: t("keyboard_actions.toggle-zen-mode"),
scope: "window"
},
{
actionName: "firstTab",
defaultShortcuts: ["CommandOrControl+1"],

View File

@ -35,6 +35,7 @@ const enum KeyboardActionNamesEnum {
activatePreviousTab,
openNewWindow,
toggleTray,
toggleZenMode,
firstTab,
secondTab,
thirdTab,

View File

@ -92,7 +92,8 @@
"toggle-book-properties": "Toggle Book Properties",
"toggle-classic-editor-toolbar": "Toggle the Formatting tab for the editor with fixed toolbar",
"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": {
"title": "Login",