Merge pull request #148 from RugerMcCarthy/dev

supports the display of line breaks in Markdown
This commit is contained in:
Yifei Zhang
2023-03-29 18:05:52 +08:00
committed by GitHub
6 changed files with 30 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ function useSubmitHandler() {
const shouldSubmit = (e: KeyboardEvent) => {
if (e.key !== "Enter") return false;
return (
(config.submitKey === SubmitKey.AltEnter && e.altKey) ||
(config.submitKey === SubmitKey.CtrlEnter && e.ctrlKey) ||