From 1cc13d4ffa82d0c251e57a1aeeeb9b52a557cf30 Mon Sep 17 00:00:00 2001 From: "mingholy.lmh" Date: Mon, 8 Jun 2026 21:28:39 +0800 Subject: [PATCH] Allow Tab to confirm slash commands --- web/src/components/chat/SlashCommand.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/chat/SlashCommand.tsx b/web/src/components/chat/SlashCommand.tsx index 00456768..10f85f07 100644 --- a/web/src/components/chat/SlashCommand.tsx +++ b/web/src/components/chat/SlashCommand.tsx @@ -285,7 +285,7 @@ export default function SlashCommand() { e.preventDefault(); e.stopImmediatePropagation(); setSelectedIdx((prev) => Math.max(prev - 1, 0)); - } else if (e.key === "Enter" && flatOrdered.length > 0) { + } else if ((e.key === "Enter" || e.key === "Tab") && flatOrdered.length > 0) { e.preventDefault(); e.stopImmediatePropagation(); executeCommand(flatOrdered[selectedIdx]);