feat(desktop): add zen mode toggle for data tabs

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-08-27 17:59:10 +08:00
1 parent 955558c81f
commit 214bf86a6f
16 files changed
+105 -9

No files matched your search

@@ -246,6 +246,10 @@ export function isToggleSidebarShortcut(event: ShortcutLikeEvent, shortcuts?: Pa
return matchesShortcut(event, actionShortcut("toggleSidebar", shortcuts));
}
export function isToggleZenModeShortcut(event: ShortcutLikeEvent, shortcuts?: Partial<ShortcutSettings>): boolean {
return matchesShortcut(event, actionShortcut("toggleZenMode", shortcuts));
}
export function isCopySidebarSelectionShortcut(event: ShortcutLikeEvent, shortcuts?: Partial<ShortcutSettings>): boolean {
return matchesShortcut(event, actionShortcut("copySidebarSelection", shortcuts));
}
@@ -66,6 +66,7 @@ export type ShortcutActionId =
| "toggleTranspose"
| "cancelSearch"
| "toggleSidebar"
| "toggleZenMode"
| "copySidebarSelection"
| "pasteSidebarSelection"
| "editSidebarConnection"
@@ -503,6 +504,12 @@ export const SHORTCUT_DEFINITIONS: ShortcutDefinition[] = [
scope: "global",
defaultShortcut: "Mod+B",
},
{
id: "toggleZenMode",
labelKey: "settings.shortcutToggleZenMode",
scope: "global",
defaultShortcut: "Shift+Mod+F12",
},
{
id: "copySidebarSelection",
labelKey: "settings.shortcutCopySidebarSelection",