From 78fce869bfa8fbc2d3f8107c7c0b33bdbb6b91b5 Mon Sep 17 00:00:00 2001 From: daria Date: Thu, 25 Apr 2024 13:57:41 +0300 Subject: [PATCH] add shortcut for getting out of Code editor --- www/common/sframe-common-codemirror.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 1d5943255..2cf288bdd 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -176,6 +176,11 @@ define([ else { editor.execCommand("insertTab"); } } }, + //remove focus from editor + "Shift-Enter": function () { + document.activeElement.blur(); + document.querySelector('[tabindex="0"]').focus(); + }, "Shift-Tab": function () { editor.execCommand("indentLess"); },