diff --git a/src/app/content/components/MessageInput.tsx b/src/app/content/components/MessageInput.tsx index dd300ed..4480dc4 100644 --- a/src/app/content/components/MessageInput.tsx +++ b/src/app/content/components/MessageInput.tsx @@ -1,4 +1,4 @@ -import { forwardRef, type ChangeEvent, CompositionEvent, type KeyboardEvent } from 'react' +import { forwardRef, type ChangeEvent, CompositionEvent, type KeyboardEvent, ClipboardEvent } from 'react' import { cn } from '@/utils' import { Textarea } from '@/components/ui/Textarea' @@ -14,6 +14,7 @@ export interface MessageInputProps { disabled?: boolean loading?: boolean onInput?: (e: ChangeEvent) => void + onPaste?: (e: ClipboardEvent) => void onKeyDown?: (e: KeyboardEvent) => void onCompositionStart?: (e: CompositionEvent) => void onCompositionEnd?: (e: CompositionEvent) => void @@ -31,6 +32,7 @@ const MessageInput = forwardRef( className, maxLength = 500, onInput, + onPaste, onKeyDown, onCompositionStart, onCompositionEnd, @@ -45,6 +47,7 @@ const MessageInput = forwardRef(