Skip to content

Commit 8eadaed

Browse files
author
Stanislav Idolov
authored
ENGCOM-2219: [Forwardport] Fix for #14593 (second try #16431) #16623
2 parents 1412c10 + 2f6ecb5 commit 8eadaed

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)