File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Checkout/view/frontend/web/js
Ui/view/base/web/js/modal Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,7 @@ define([
98
98
99
99
/** @inheritdoc */
100
100
always : function ( e ) {
101
- if ( e ) {
102
- e . stopImmediatePropagation ( ) ;
103
- }
101
+ e . stopImmediatePropagation ( ) ;
104
102
}
105
103
}
106
104
} ) ;
Original file line number Diff line number Diff line change @@ -105,10 +105,10 @@ define([
105
105
* Escape key press handler,
106
106
* close modal window
107
107
*/
108
- escapeKey : function ( ) {
108
+ escapeKey : function ( event ) {
109
109
if ( this . options . isOpen && this . modal . find ( document . activeElement ) . length ||
110
110
this . options . isOpen && this . modal [ 0 ] === document . activeElement ) {
111
- this . closeModal ( ) ;
111
+ this . closeModal ( event ) ;
112
112
}
113
113
}
114
114
}
@@ -177,7 +177,7 @@ define([
177
177
var key = keyCodes [ event . keyCode ] ;
178
178
179
179
if ( this . options . keyEventHandlers . hasOwnProperty ( key ) ) {
180
- this . options . keyEventHandlers [ key ] . apply ( this , arguments ) ;
180
+ this . options . keyEventHandlers [ key ] . apply ( this , arguments , event ) ;
181
181
}
182
182
} ,
183
183
You can’t perform that action at this time.
0 commit comments