Skip to content

Commit

Permalink
Handle Shift+Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed May 9, 2024
1 parent 4cf56b3 commit 7e1af7b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ export const useFieldV7TextField: UseFieldTextField<true> = (params) => {
return;
}

if ((event.nativeEvent as InputEvent).inputType === 'insertParagraph') {
const inputType = (event.nativeEvent as InputEvent).inputType;
if (inputType === 'insertParagraph' || inputType === 'insertLineBreak') {
revertDOMSectionChange(sectionIndex);
return;
}
Expand Down

0 comments on commit 7e1af7b

Please sign in to comment.