File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
code/Magento/Ui/view/base/web/js/lib
design/adminhtml/Magento/backend/web/js Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ define([], function () {
21
21
17 : 'ctrlKey' ,
22
22
18 : 'altKey' ,
23
23
16 : 'shiftKey' ,
24
+ 191 : 'forwardSlashKey' ,
24
25
66 : 'bKey' ,
25
26
73 : 'iKey' ,
26
27
85 : 'uKey'
Original file line number Diff line number Diff line change @@ -312,8 +312,9 @@ define('globalNavigation', [
312
312
313
313
define ( 'globalSearch' , [
314
314
'jquery' ,
315
+ 'Magento_Ui/js/lib/key-codes' ,
315
316
'jquery/ui'
316
- ] , function ( $ ) {
317
+ ] , function ( $ , keyCodes ) {
317
318
'use strict' ;
318
319
319
320
$ . widget ( 'mage.globalSearch' , {
@@ -353,7 +354,7 @@ define('globalSearch', [
353
354
'textarea'
354
355
] ;
355
356
356
- if ( e . which !== 191 || // forward slash - '/'
357
+ if ( keyCodes [ e . which ] !== 'forwardSlashKey' ||
357
358
inputs . indexOf ( e . target . tagName . toLowerCase ( ) ) !== - 1 ||
358
359
e . target . isContentEditable
359
360
) {
You can’t perform that action at this time.
0 commit comments