src/aria/widgets/container/Dialog.js
function () {
            var cfg = this._cfg;
            var waiEscapeMsg = cfg.waiEscapeMsg;
            var confirmed = !(cfg.waiAria && waiEscapeMsg);
            if (!confirmed) {
                var now = new Date().getTime();
                confirmed = this._firstEscapeTime && (now - this._firstEscapeTime) <= 3000;
                if (!confirmed) {
                    this._firstEscapeTime = now;
                    this.waiReadText(waiEscapeMsg);
                }
            }
            if (confirmed) {
                this._firstEscapeTime = null;
                this.actionClose();
            }
        }
function () {
            var cfg = this._cfg;
            var waiEscapeMsg = cfg.waiEscapeMsg;
            var confirmed = !(cfg.waiAria && waiEscapeMsg);
            if (!confirmed) {
                var now = new Date().getTime();
                confirmed = this._firstEscapeTime && (now - this._firstEscapeTime) <= 3000;
                if (!confirmed) {
                    this._firstEscapeTime = now;
                    this.waiReadText(waiEscapeMsg);
                }
            }
            if (confirmed) {
                this._firstEscapeTime = null;
                this.actionClose();
            }
        }
function ( ) { var cfg = this . _cfg ; var waiEscapeMsg = cfg . waiEscapeMsg ; var confirmed = ! ( cfg . waiAria && waiEscapeMsg ) ; if ( ! confirmed ) { var now = new Date ( ) . getTime ( ) ; confirmed = this . _firstEscapeTime && ( now - this . _firstEscapeTime ) <= 3000 ; if ( ! confirmed ) { this . _firstEscapeTime = now ; this . waiReadText ( waiEscapeMsg ) ; } } if ( confirmed ) { this . _firstEscapeTime = null ; this . actionClose ( ) ; } }
This function is called when escape is pressed.
If waiAria is true and waiEscapeMsg is defined, escape has to be
pressed twice in less than 3s to close the popup.
This function is called when escape is pressed . If waiAria is true and waiEscapeMsg is defined escape has to be pressed twice in less than 3s to close the popup .