Skip to content

Commit 2f6ecb5

Browse files
ENGCOM-2219: [Forwardport] Fix for #14593 (second try #16431) #16623
- Merge Pull Request #16623 from mageprince/magento2:2.3-develop-PR-port-16477 - Merged commits: 1. 0fdc0a8 2. 07f7d83 3. 160bc5d
2 parents 0c2fa6f + 160bc5d commit 2f6ecb5

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)