Skip to content
Closed
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
22 changes: 22 additions & 0 deletions src/browser/base/zen-components/ZenKeyboardShortcuts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,28 @@ class ZenKeyboardShortcutsVersioner {
'code:gZenVerticalTabsManager.toggleExpand()',
'zen-sidebar-shortcut-toggle'
)
// Here, we are adding shortcuts to switch to prev/next tabs in a workspace
data.push(
...[
new KeyShortcut(
'zen-advance-selected-tab-shortcut',
'',
'',
ZEN_OTHER_SHORTCUTS_GROUP,
KeyShortcutModifiers.fromObject({}),
'code:gBrowser.tabContainer.advanceSelectedTab(1, true)',
'zen-advance-selected-tab-shortcut'
),
new KeyShortcut(
'zen-reverse-selected-tab-shortcut',
'',
'',
ZEN_OTHER_SHORTCUTS_GROUP,
KeyShortcutModifiers.fromObject({}),
'code:gBrowser.tabContainer.advanceSelectedTab(-1, true)',
'zen-reverse-selected-tab-shortcut'
),
]
);
}
return data;
Expand Down