added Command+S quick save alias and fixed relations draft restore
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user