fix: remove shift key requirement for image drag-and-drop

Fixes #6953 - Users can now drag and drop images into the prompt field
without holding the Shift key. This restores the expected behavior where
drag-and-drop works naturally for image files.
This commit is contained in:
Roo Code 2025-08-11 21:10:17 +00:00
parent b30372d5ca
commit 0bb89a53be

View file

@ -1175,12 +1175,6 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
className={cn("chat-text-area", "relative", "flex", "flex-col", "outline-none")}
onDrop={handleDrop}
onDragOver={(e) => {
// Only allowed to drop images/files on shift key pressed.
if (!e.shiftKey) {
setIsDraggingOver(false)
return
}
e.preventDefault()
setIsDraggingOver(true)
e.dataTransfer.dropEffect = "copy"