diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index f2945a444..d5903732e 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1517,9 +1517,10 @@ define([ common.alert = function (msg, cb, force) { cb = cb || function () {}; if (force !== true) { msg = fixHTML(msg); } - var keyHandler = listenForKeys(function (e) { // yes + var close = function (e) { findOKButton().click(); - }); + }; + var keyHandler = listenForKeys(close, close); Alertify.alert(msg, function (ev) { cb(ev); stopListening(keyHandler); diff --git a/www/drive/inner.html b/www/drive/inner.html index 596b39e08..a6dc1bf93 100644 --- a/www/drive/inner.html +++ b/www/drive/inner.html @@ -16,16 +16,17 @@