Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ui/src/components/chat/ChatInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ export default function ChatInterface({ selectedAgentName, selectedNamespace, se
},
});

const [shortcutKey, setShortcutKey] = useState("Ctrl");
useEffect(() => {
if (/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)) {
setShortcutKey("⌘");
}
}, []);

const { handleMessageEvent } = createMessageHandlers({
setMessages: setStreamingMessages,
setIsStreaming,
Expand Down Expand Up @@ -441,6 +448,7 @@ export default function ChatInterface({ selectedAgentName, selectedNamespace, se
/>

<div className="flex items-center justify-end gap-2 mt-4">
<span className="mr-auto text-xs text-muted-foreground">{shortcutKey}+Enter to send</span>
{isVoiceSupported && (
<TooltipProvider>
<Tooltip>
Expand Down
Loading