From 14938089ac9b222440b46e73aa508875930a8a04 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 7 Mar 2017 14:24:06 +0100 Subject: [PATCH] Keep the focus on the iframe window after canceling a deletion --- www/drive/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/drive/main.js b/www/drive/main.js index 6706d30fa..c73271689 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -660,6 +660,7 @@ define([ msg = Messages._getKey('fm_removeDialog', [name]); } Cryptpad.confirm(msg, function (res) { + $(ifrw).focus(); if (!res) { return; } andThen(); }); @@ -1935,6 +1936,7 @@ define([ } Cryptpad.confirm(msg, function(res) { + $(ifrw).focus(); if (!res) { return; } filesOp.deletePathsPermanently(paths); refresh();