mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +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"),
|
||||
scope: "window"
|
||||
},
|
||||
{
|
||||
actionName: "toggleZenMode",
|
||||
defaultShortcuts: ["Alt+Z"],
|
||||
description: t("keyboard_actions.toggle-zen-mode"),
|
||||
scope: "window"
|
||||
},
|
||||
{
|
||||
actionName: "firstTab",
|
||||
defaultShortcuts: ["CommandOrControl+1"],
|
||||
|
@ -35,6 +35,7 @@ const enum KeyboardActionNamesEnum {
|
||||
activatePreviousTab,
|
||||
openNewWindow,
|
||||
toggleTray,
|
||||
toggleZenMode,
|
||||
firstTab,
|
||||
secondTab,
|
||||
thirdTab,
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user