mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
add shortcut for getting out of Code editor
This commit is contained in:
parent
08f859ab0e
commit
78fce869bf
@ -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");
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user