Add drag-and-drop support to the file picker dropdown widget (#4551)

Add drag-and-drop file ingest into file picker dropdowns
This commit is contained in:
Keavon Chambers
2026-09-19 00:34:37 -07:00
committed by GitHub
parent 7d1303f695
commit ab32a60476
7 changed files with 96 additions and 18 deletions
+1 -1
View File
@@ -597,7 +597,7 @@ mod editor_commands {
ClipboardMessage::ReadSelection { content, cut }.into()
}
/// A file picked in the dialog that `TriggerBrowse` opened
/// A file headed for a known action, either picked in the dialog that `TriggerBrowse` opened or dropped onto a widget that takes files
fn ingest_picked(name: String, mime_type: String, data: Vec<u8>, action: IngestAction) -> Message {
IngestMessage::Ingest {
data,