浏览代码

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