CodeEditor: don't type newline when pressing enter to start edit mode

This commit is contained in:
Keith J. Grant
2021-03-09 11:27:43 -08:00
parent c2a2bf39d5
commit 0b57522dce

View File

@@ -90,8 +90,9 @@ function CodeEditor({
if (!editorInput) { if (!editorInput) {
return; return;
} }
editorInput.focus(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
editorInput.focus();
} }
}, []); }, []);