mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-28 09:21:32 +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:
@@ -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