Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix: ignore repeated keydowns for new-thread shortcut

quang.tranminhe7473fda2ee5
diff --git a/src/App.tsx b/src/App.tsx
index 9d62166766..7923be25b7 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -186,7 +186,7 @@ function Shell({ viewer }: { viewer: WelcomeViewer | null }) {
e.preventDefault();
if (e.shiftKey) {
const selected = state.bots.find((bot) => bot.id === state.selectedId && !bot.hidden);
- if (selected && selected.yourAccess !== "view") dispatch({ type: "newTask", botId: selected.id });
+ if (!e.repeat && selected && selected.yourAccess !== "view") dispatch({ type: "newTask", botId: selected.id });
} else {
dispatch({ type: "newBot" });
}