From b54901d50cbf704700b4e68f77888fd313fe607a Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 7 Sep 2020 12:06:03 -0700 Subject: [PATCH] fix: CMD+Eneter in title should still publish --- app/scenes/Document/components/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Document/components/Editor.js b/app/scenes/Document/components/Editor.js index c05237b91..34f07c276 100644 --- a/app/scenes/Document/components/Editor.js +++ b/app/scenes/Document/components/Editor.js @@ -50,7 +50,7 @@ class DocumentEditor extends React.Component { }; handleTitleKeyDown = (event: SyntheticKeyboardEvent<>) => { - if (event.key === "Enter") { + if (event.key === "Enter" && !event.metaKey) { event.preventDefault(); this.insertParagraph(); this.focusAtStart();