mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Add new line on Enter (#1161)
* Add new line on Enter Fixes #1158 * Fix lint
This commit is contained in:
parent
56034eacb0
commit
9b6700755a
1 changed files with 1 additions and 5 deletions
|
@ -97,11 +97,7 @@ export function textWysiwyg({
|
|||
handleSubmit();
|
||||
}
|
||||
if (ev.key === KEYS.ENTER && !ev.shiftKey) {
|
||||
ev.preventDefault();
|
||||
if (ev.isComposing || ev.keyCode === 229) {
|
||||
return;
|
||||
}
|
||||
handleSubmit();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
};
|
||||
editable.onblur = handleSubmit;
|
||||
|
|
Loading…
Add table
Reference in a new issue