From 6e36926ff35a9bce2d4e83a3b8a4595988ab3223 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 15 Oct 2025 10:36:59 -0700 Subject: [PATCH] Enable keyboard nav of slash commands with arrow keys on mount --- .../SlashCommands/SlashPresets/index.jsx | 2 + .../SlashCommands/endAgentSession.jsx | 2 + .../PromptInput/SlashCommands/index.jsx | 3 + .../PromptInput/SlashCommands/reset.jsx | 2 + .../useSlashCommandKeyboardNavigation.js | 62 +++++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 frontend/src/hooks/useSlashCommandKeyboardNavigation.js diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx index d38378536ab..9c1ee330557 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SlashCommands/SlashPresets/index.jsx @@ -186,6 +186,8 @@ function PresetItem({ preset, onUse, onEdit, onPublish }) { return (