فهرست منبع

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") {