Explorar o código

fix: Enter key bug

xiaotianxt %!s(int64=2) %!d(string=hai) anos
pai
achega
6c82f804ae
Modificáronse 1 ficheiros con 2 adicións e 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)
     );
   };