diff --git a/webview-ui/src/components/ChatTextArea.tsx b/webview-ui/src/components/ChatTextArea.tsx index 327bc9b..ef09820 100644 --- a/webview-ui/src/components/ChatTextArea.tsx +++ b/webview-ui/src/components/ChatTextArea.tsx @@ -182,7 +182,7 @@ const ChatTextArea = forwardRef( }) return } - if (event.key === "Enter" && selectedMenuIndex !== -1) { + if ((event.key === "Enter" || event.key === "Tab") && selectedMenuIndex !== -1) { event.preventDefault() const selectedOption = getContextMenuOptions(searchQuery, selectedType, queryItems)[ selectedMenuIndex