@@ -83,6 +83,7 @@ tabView.addListener('activeTabChange', function(e) {
83
83
{ /literal }
84
84
{ if is_numeric($tab_idx_workflow )}
85
85
case { $tab_idx_workflow } :
86
+ { if $pref_keyboard_shortcuts }
86
87
{literal }
87
88
CreateKeyHandler(function (e) {
88
89
var mycode = getKeyboardKey(e, true );
@@ -130,14 +131,16 @@ tabView.addListener('activeTabChange', function(e) {
130
131
break ;
131
132
}
132
133
} );
133
- break;
134
- { /literal } { /if } {literal }
134
+ { /literal }
135
+ { /if }
136
+ break;
137
+ { /if }
135
138
136
139
// Overview keys
137
- { /literal }
138
140
{ if is_numeric($tab_idx_overview )}
139
141
case { $tab_idx_overview } :
140
- {literal }
142
+ { if $pref_keyboard_shortcuts }
143
+ {literal }
141
144
CreateKeyHandler(function (e) {
142
145
var mycode = getKeyboardKey(e, true );
143
146
@@ -184,14 +187,16 @@ tabView.addListener('activeTabChange', function(e) {
184
187
break ;
185
188
}
186
189
} );
190
+ { /literal }
191
+ { /if }
187
192
break;
188
- { /literal } { / if } { literal }
193
+ { /if }
189
194
190
195
// Search keys
191
- { /literal }
192
196
{ if is_numeric($tab_idx_search )}
193
197
case { $tab_idx_search } :
194
- {literal }
198
+ { if $pref_keyboard_shortcuts }
199
+ {literal }
195
200
CreateKeyHandler(function (e) {
196
201
var mycode = getKeyboardKey(e, true );
197
202
@@ -228,9 +233,12 @@ tabView.addListener('activeTabChange', function(e) {
228
233
break ;
229
234
}
230
235
} );
236
+ { /literal }
237
+ { /if }
231
238
break;
232
- { /literal } { / if } { literal }
239
+ { /if }
233
240
241
+ {literal }
234
242
default:
235
243
CreateKeyHandler(function (e) { } );
236
244
break;
0 commit comments