Skip to content

Commit 07f7d83

Browse files
0m3rmageprince
authored andcommitted
Fix for #14593 (duo over)
1 parent 0fdc0a8 commit 07f7d83

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/modal

1 file changed

+3
-2
lines changed

app/code/Magento/Ui/view/base/web/js/modal/modal.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ define([
104104
/**
105105
* Escape key press handler,
106106
* close modal window
107+
* @param {Object} event - event
107108
*/
108-
escapeKey: function () {
109+
escapeKey: function (event) {
109110
if (this.options.isOpen && this.modal.find(document.activeElement).length ||
110111
this.options.isOpen && this.modal[0] === document.activeElement) {
111-
this.closeModal();
112+
this.closeModal(event);
112113
}
113114
}
114115
}

0 commit comments

Comments
 (0)