From 91a806ab862dbef616d003003c22dc4f9ff352b6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Dec 2016 17:10:59 +0100 Subject: [PATCH] focus on OK button when we pop an alert --- www/common/cryptpad-common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 0e6e1311e..28002d861 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -952,6 +952,9 @@ define([ cb(ev); stopListening(keyHandler); }); + window.setTimeout(function () { + findOKButton().focus(); + }); }; common.prompt = function (msg, def, cb, opt) {