Explorar o código

make text committing cross-platform (#1188)

David Luzar %!s(int64=5) %!d(string=hai) anos
pai
achega
8030a167c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/element/textWysiwyg.tsx

+ 1 - 1
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;