소스 검색

fix: Enter key bug

xiaotianxt 2 년 전
부모
커밋
6c82f804ae
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)
     );
   };