Skip to content
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