From 058e28911a0698a8c7dbf1710a99b332535cc0be Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Mon, 26 Jun 2023 18:29:46 +0800 Subject: [PATCH] fix: #2135 disable cmd + arrow to change session --- app/components/sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 6392b962..038ca86f 100644 --- a/app/components/sidebar.tsx +++ b/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") {