We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fdc0a8 commit 07f7d83Copy full SHA for 07f7d83
app/code/Magento/Ui/view/base/web/js/modal/modal.js
@@ -104,11 +104,12 @@ define([
104
/**
105
* Escape key press handler,
106
* close modal window
107
+ * @param {Object} event - event
108
*/
- escapeKey: function () {
109
+ escapeKey: function (event) {
110
if (this.options.isOpen && this.modal.find(document.activeElement).length ||
111
this.options.isOpen && this.modal[0] === document.activeElement) {
- this.closeModal();
112
+ this.closeModal(event);
113
}
114
115
0 commit comments