added Command+S quick save alias and fixed relations draft restore

This commit is contained in:
Gani Georgiev
2023-04-20 14:30:29 +03:00
parent 818857dea2
commit 01f4765c09
5 changed files with 29 additions and 9 deletions
+1 -1
View File
@@ -1327,7 +1327,7 @@ export default class CommonHelper {
setup: (editor) => {
editor.on('keydown', (e) => {
// propagate save shortcut to the parent
if (e.ctrlKey && e.code == "KeyS" && editor.formElement) {
if ((e.ctrlKey || e.metaKey) && e.code == "KeyS" && editor.formElement) {
e.preventDefault();
e.stopPropagation();
editor.formElement.dispatchEvent(new KeyboardEvent("keydown", e));