Explorar el Código

fix: Enter key bug

xiaotianxt hace 2 años
padre
commit
6c82f804ae
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/components/home.tsx

+ 2 - 1
app/components/home.tsx

@@ -135,7 +135,8 @@ function useSubmitHandler() {
       (config.submitKey === SubmitKey.Enter &&
         !e.altKey &&
         !e.ctrlKey &&
-        !e.shiftKey)
+        !e.shiftKey &&
+        !e.metaKey)
     );
   };