mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-20 03:51:20 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user