Ver Fonte

fix: Enter key bug

xiaotianxt há 2 anos atrás
pai
commit
6c82f804ae
1 ficheiros alterados com 2 adições e 1 exclusões
  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)
     );
   };