fix: CMD+Eneter in title should still publish

This commit is contained in:
Tom Moor 2020-09-07 12:06:03 -07:00
parent 4de3f69474
commit b54901d50c

View File

@ -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();