Skip to content

Feature: Added the shortcut for duplicating tabs #6224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/browser/base/zen-components/ZenKeyboardShortcuts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ class ZenKeyboardShortcutsLoader {
}

class ZenKeyboardShortcutsVersioner {
static LATEST_KBS_VERSION = 8;
static LATEST_KBS_VERSION = 9;

constructor() {}

Expand Down Expand Up @@ -937,6 +937,21 @@ class ZenKeyboardShortcutsVersioner {
)
);
}
if (version < 9) {
// Migrate from 8 to 9
// In this new version, we add the "Duplicate Tab" shortcut
data.push(
new KeyShortcut(
'zen-duplicate-tab',
'',
'',
ZEN_OTHER_SHORTCUTS_GROUP,
KeyShortcutModifiers.fromObject({}),
'code:gBrowser.duplicateTab(gBrowser.selectedTab)',
'zen-duplicate-tab-shortcut'
)
);
}
return data;
}
}
Expand Down