Pārlūkot izejas kodu

fix: Enter key bug

xiaotianxt 2 gadi atpakaļ
vecāks
revīzija
6c82f804ae
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      app/components/home.tsx

+ 2 - 1
app/components/home.tsx

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