Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

make text committing cross-platform (#1188)

David Luzar8030a167c65e
diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx
index d1134e4590..692f59398c 100644
--- a/src/element/textWysiwyg.tsx
+++ b/src/element/textWysiwyg.tsx
@@ -109,7 +109,7 @@ export function textWysiwyg({
ev.preventDefault();
handleSubmit();
}
- if (ev.key === KEYS.ENTER && (ev.shiftKey || ev.metaKey)) {
+ if (ev.key === KEYS.ENTER && (ev.shiftKey || ev[KEYS.CTRL_OR_CMD])) {
ev.preventDefault();
if (ev.isComposing || ev.keyCode === 229) {
return;