Add new line on Enter (#1161)
* Add new line on Enter Fixes #1158 * Fix lint
This commit is contained in:
parent
56034eacb0
commit
9b6700755a
@ -97,11 +97,7 @@ export function textWysiwyg({
|
|||||||
handleSubmit();
|
handleSubmit();
|
||||||
}
|
}
|
||||||
if (ev.key === KEYS.ENTER && !ev.shiftKey) {
|
if (ev.key === KEYS.ENTER && !ev.shiftKey) {
|
||||||
ev.preventDefault();
|
ev.stopPropagation();
|
||||||
if (ev.isComposing || ev.keyCode === 229) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
handleSubmit();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
editable.onblur = handleSubmit;
|
editable.onblur = handleSubmit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user