Skip to content

Commit

Permalink
Fix newline for default markdown editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Apr 26, 2022
1 parent fa64370 commit 6810b07
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -33,7 +33,11 @@ export const MarkdownOverlayEditor: React.FunctionComponent<Props> = p => {
<GrowingEntry
autoFocus={true}
highlight={false}
onKeyDown={onKeyDown}
onKeyDown={e => {
if (e.key !== "Enter") {
onKeyDown(e);
}
}}
value={markdown}
onChange={onChange}
/>
Expand Down

0 comments on commit 6810b07

Please sign in to comment.