mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
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:
parent
b30372d5ca
commit
0bb89a53be
1 changed files with 0 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue