File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,17 @@ document.addEventListener(
98
98
gZenTabUnloader . ignoreUnloadTab ( ) ;
99
99
break ;
100
100
case 'cmd_zenSearchTabs' :
101
- if ( ! gURLBar . view . isOpen ) {
102
- gURLBar . search ( "% " ) ;
103
- } else {
101
+ if ( gURLBar . view . isOpen && gURLBar . searchMode && gURLBar . searchMode . source === 4 /* URLBarUtils.RESULT_SOURCE.TABS */ ) {
104
102
gURLBar . view . selectBy ( 1 ) ;
103
+ } else {
104
+ gURLBar . search ( "% " ) ;
105
105
}
106
106
break ;
107
107
case 'cmd_zenBackwardSearchTabs' :
108
- if ( ! gURLBar . view . isOpen ) {
109
- gURLBar . search ( "% " ) ;
110
- } else {
108
+ if ( gURLBar . view . isOpen && gURLBar . searchMode && gURLBar . searchMode ?. source === 4 /* URLBarUtils.RESULT_SOURCE.TABS */ ) {
111
109
gURLBar . view . selectBy ( 1 , { reverse : true } ) ;
110
+ } else {
111
+ gURLBar . search ( "% " ) ;
112
112
}
113
113
break ;
114
114
default :
You can’t perform that action at this time.
0 commit comments