Add new line on Enter (#1161)

* Add new line on Enter

Fixes #1158

* Fix lint
This commit is contained in:
Mohit kumar Bajoria 2020-04-02 05:11:42 +05:30 committed by GitHub
parent 56034eacb0
commit 9b6700755a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;