fix: #2135 disable cmd + arrow to change session

This commit is contained in:
Yifei Zhang 2023-06-26 18:29:46 +08:00 committed by GitHub
parent 25a3bb351d
commit 058e28911a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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