Skip to content

Commit

Permalink
Fix for #14593 (duo over)
Browse files Browse the repository at this point in the history
  • Loading branch information
0m3r authored and gelanivishal committed Jul 28, 2018
1 parent b50caeb commit 540cdb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/Magento/Ui/view/base/web/js/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ define([
/**
* Escape key press handler,
* close modal window
* @param {Object} event - event
*/
escapeKey: function () {
escapeKey: function (event) {
if (this.options.isOpen && this.modal.find(document.activeElement).length ||
this.options.isOpen && this.modal[0] === document.activeElement) {
this.closeModal();
this.closeModal(event);
}
}
}
Expand Down

0 comments on commit 540cdb5

Please sign in to comment.