Skip to content

Commit 7b1b65d

Browse files
ENGCOM-2155: Fix for #14593 (second try #16431) #16477
- Merge Pull Request #16477 from 0m3r/magento2:2.2-develop - Merged commits: 1. 8399f63 2. a6a17d3 3. 21f85b4
2 parents 0383b22 + 21f85b4 commit 7b1b65d

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)