|
@@ -192,9 +192,10 @@ function hasResponseError(_data) {
|
|
|
.off('keydown.stag-popup-escape')
|
|
|
.on('keydown.stag-popup-escape', function (e) {
|
|
|
if(e.which === 27) {
|
|
|
- if(!window.moeClosedAt || (new Date()).getTime() - window.moeClosedAt > 1000) {
|
|
|
+ if(!isEventConsumed(e)) {
|
|
|
if(stagPopupsQueue.length) {
|
|
|
closeStagPopup();
|
|
|
+ markEventAsConsumed(e);
|
|
|
return false;
|
|
|
}
|
|
|
}
|