From 0bb89a53be593973acc72693702b9734c440f0b7 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 11 Aug 2025 21:10:17 +0000 Subject: [PATCH] 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. --- webview-ui/src/components/chat/ChatTextArea.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index 5135eca2f2..d0f0596265 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -1175,12 +1175,6 @@ const ChatTextArea = forwardRef( 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"