add shortcut for getting out of Code editor

This commit is contained in:
daria 2024-04-25 13:57:41 +03:00
parent 08f859ab0e
commit 78fce869bf

View File

@ -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");
},