fix: CMD+Eneter in title should still publish
This commit is contained in:
parent
4de3f69474
commit
b54901d50c
@ -50,7 +50,7 @@ class DocumentEditor extends React.Component<Props> {
|
||||
};
|
||||
|
||||
handleTitleKeyDown = (event: SyntheticKeyboardEvent<>) => {
|
||||
if (event.key === "Enter") {
|
||||
if (event.key === "Enter" && !event.metaKey) {
|
||||
event.preventDefault();
|
||||
this.insertParagraph();
|
||||
this.focusAtStart();
|
||||
|
Reference in New Issue
Block a user