Implement drag and drop attachments in chat #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements drag-and-drop functionality for attachments into the AI chatbox, addressing part of issue ORC-51.
The existing drag-and-drop handling logic (
can_drop_data()anddrop_data()) was already robust. However, the UI controls where users would naturally drop files (the input field and its surrounding panel) were not configured to receive drag events.This change enables
set_drag_forwardingon thebottom_panel(which contains the attachment area and input field) and directly on theinput_fielditself. This ensures that files dragged from the OS, Godot's FileSystem dock, or scene nodes can now be correctly dropped into the chat input area to be attached.This significantly improves the attachment flow and user experience as described in ORC-51.
Linear Issue: ORC-51