浏览代码

fix: #2135 disable cmd + arrow to change session

Yifei Zhang 1 年之前
父节点
当前提交
058e28911a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/components/sidebar.tsx

+ 1 - 1
app/components/sidebar.tsx

@@ -37,7 +37,7 @@ function useHotKey() {
 
   useEffect(() => {
     const onKeyDown = (e: KeyboardEvent) => {
-      if (e.metaKey || e.altKey || e.ctrlKey) {
+      if (e.altKey || e.ctrlKey) {
         if (e.key === "ArrowUp") {
           chatStore.nextSession(-1);
         } else if (e.key === "ArrowDown") {