Skip to content

Commit d0c8a86

Browse files
committed
Replace focus search (alt) with tabs search
1 parent b801685 commit d0c8a86

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

src/browser/base/content/zen-keysets.inc.xhtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
<command id="cmd_zenUnloadTab" />
4848
<command id="cmd_zenPreventUnloadTab" />
4949
<command id="cmd_zenIgnoreUnloadTab" />
50+
51+
<!-- Tab search commands -->
5052
<command id="cmd_zenSearchTabs" />
5153
</commandset>
5254

src/zen/common/zen-sets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ document.addEventListener(
9898
gZenTabUnloader.ignoreUnloadTab();
9999
break;
100100
case 'cmd_zenSearchTabs':
101-
gURLBar.search("%");
101+
gURLBar.search("% ");
102102
break;
103103
default:
104104
if (event.target.id.startsWith('cmd_zenWorkspaceSwitch')) {

src/zen/kbs/ZenKeyboardShortcuts.mjs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,15 +734,24 @@ class ZenKeyboardShortcutsLoader {
734734
'zen-split-view-shortcut-unsplit'
735735
)
736736
);
737+
738+
//tabs search
739+
{
740+
const index = newShortcutList.findIndex(item => item.getID() === 'key_search2');
741+
if (index !== -1) {
742+
newShortcutList.splice(index, 1);
743+
}
744+
}
745+
737746
newShortcutList.push(
738747
new KeyShortcut(
739748
'zen-search-tabs',
740749
'J',
741750
'',
742-
ZEN_WORKSPACE_SHORTCUTS_GROUP,
743-
KeyShortcutModifiers.fromObject({ accel: true, alt: true }),
751+
'searchAndFind',
752+
KeyShortcutModifiers.fromObject({ accel: true, alt: false }),
744753
'cmd_zenSearchTabs',
745-
'zen-search-shortcut-tabs'
754+
'zen-search-focus-shortcut-alt'
746755
)
747756
);
748757

0 commit comments

Comments
 (0)