From 41ef72656ddc858890ce7c0a22e503a6d5acdd70 Mon Sep 17 00:00:00 2001 From: daria Date: Fri, 10 May 2024 13:34:38 +0300 Subject: [PATCH] change shortcut for getting out of text editors Code/Slides --- www/common/sframe-common-codemirror.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 2cf288bdd..2e84c2d11 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -177,9 +177,9 @@ define([ } }, //remove focus from editor - "Shift-Enter": function () { + "Esc": function () { document.activeElement.blur(); - document.querySelector('[tabindex="0"]').focus(); + document.querySelector('.cp-toolbar-link-logo').focus(); }, "Shift-Tab": function () { editor.execCommand("indentLess");