make text committing cross-platform (#1188)
This commit is contained in:
parent
cd3083e8e6
commit
8030a167c6
@ -109,7 +109,7 @@ export function textWysiwyg({
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
handleSubmit();
|
handleSubmit();
|
||||||
}
|
}
|
||||||
if (ev.key === KEYS.ENTER && (ev.shiftKey || ev.metaKey)) {
|
if (ev.key === KEYS.ENTER && (ev.shiftKey || ev[KEYS.CTRL_OR_CMD])) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
if (ev.isComposing || ev.keyCode === 229) {
|
if (ev.isComposing || ev.keyCode === 229) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user