parent
44ca447185
commit
273d9c4680
@ -54,7 +54,7 @@ class DocumentEditor extends React.Component<Props> {
|
||||
if (event.key === "Enter") {
|
||||
event.preventDefault();
|
||||
if (event.metaKey) {
|
||||
this.props.onSave({ publish: true, done: true });
|
||||
this.props.onSave({ done: true });
|
||||
return;
|
||||
}
|
||||
|
||||
@ -67,6 +67,11 @@ class DocumentEditor extends React.Component<Props> {
|
||||
this.focusAtStart();
|
||||
return;
|
||||
}
|
||||
if (event.key === "p" && event.metaKey && event.shiftKey) {
|
||||
event.preventDefault();
|
||||
this.props.onSave({ publish: true, done: true });
|
||||
return;
|
||||
}
|
||||
if (event.key === "s" && event.metaKey) {
|
||||
event.preventDefault();
|
||||
this.props.onSave({});
|
||||
|
Reference in New Issue
Block a user