no-bug: Add shortcut to create a new Space (gh-13552)

Co-authored-by: Zander Otavka <AlexanderOtavka@users.noreply.github.com>
This commit is contained in:
Zander Otavka
2026-05-04 15:14:24 -07:00
committed by GitHub
parent 60a77413df
commit 149419d1fd
2 changed files with 18 additions and 1 deletions

View File

@@ -321,6 +321,7 @@ zen-workspace-shortcut-switch-9 = Switch to Workspace 9
zen-workspace-shortcut-switch-10 = Switch to Workspace 10
zen-workspace-shortcut-forward = Forward Workspace
zen-workspace-shortcut-backward = Backward Workspace
zen-workspace-shortcut-create = Create New Workspace
zen-sidebar-shortcut-toggle = Toggle Sidebar's Width
zen-pinned-tab-shortcut-reset = Reset Pinned Tab to Pinned URL
zen-split-view-shortcut-grid = Toggle Split View Grid

View File

@@ -832,7 +832,7 @@ class nsZenKeyboardShortcutsLoader {
}
class nsZenKeyboardShortcutsVersioner {
static LATEST_KBS_VERSION = 17;
static LATEST_KBS_VERSION = 18;
constructor() {}
@@ -1212,6 +1212,22 @@ class nsZenKeyboardShortcutsVersioner {
);
}
if (version < 18) {
// Migrate from version 17 to 18.
// Add shortcut to Create New Workspace (unbound by default)
data.push(
new KeyShortcut(
"zen-workspace-create",
"",
"",
ZEN_WORKSPACE_SHORTCUTS_GROUP,
nsKeyShortcutModifiers.fromObject({}),
"cmd_zenOpenWorkspaceCreation",
"zen-workspace-shortcut-create"
)
);
}
return data;
}
}