瀏覽代碼

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)
     );
   };