From 7a41fdffe8bd7aedf17812a9efc9a215eecaebac Mon Sep 17 00:00:00 2001 From: JFH Date: Thu, 2 Jul 2020 01:26:18 +0200 Subject: [PATCH] set the focus to body so shortcut keys can work... .. previously, the imaglib was setting the focus onto the iFrame which is a a different DOM tree so key events were not passed down to our code. --- editor/extensions/ext-imagelib.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/extensions/ext-imagelib.js b/editor/extensions/ext-imagelib.js index d78da7cf..6ee0c2a7 100644 --- a/editor/extensions/ext-imagelib.js +++ b/editor/extensions/ext-imagelib.js @@ -49,6 +49,7 @@ export default { */ function closeBrowser () { $('#imgbrowse_holder').hide(); + document.activeElement.blur(); // make sure focus is the body to correct issue #417 } /**