diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 7cf59ff6..56f87b6d 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -71,6 +71,12 @@ export default function Conversation() { return responseView; }; + const handlePaste = (e: React.ClipboardEvent) => { + e.preventDefault(); + const text = e.clipboardData.getData('text/plain'); + document.execCommand('insertText', false, text); + }; + return (
{queries.length > 0 && ( @@ -98,6 +104,7 @@ export default function Conversation() {
{ if (e.key === 'Enter' && !e.shiftKey) {