diff --git a/Toolset/palettes/inspector/editors/com.livecode.pi.file.behavior.livecodescript b/Toolset/palettes/inspector/editors/com.livecode.pi.file.behavior.livecodescript index e5406b639b..311f5ab779 100644 --- a/Toolset/palettes/inspector/editors/com.livecode.pi.file.behavior.livecodescript +++ b/Toolset/palettes/inspector/editors/com.livecode.pi.file.behavior.livecodescript @@ -61,3 +61,18 @@ on mouseUp pButton end if end if end mouseUp + +on dragEnter + if the dragData["files"] is empty then + pass dragEnter + end if + set the dragAction to "link" +end dragEnter + +on dragDrop + if the dragData["files"] is empty then + pass dragDrop + end if + set the text of field 1 of me to line 1 of the dragData["files"] + valueChanged +end dragDrop diff --git a/notes/bugfix-22124.md b/notes/bugfix-22124.md new file mode 100644 index 0000000000..63227177d3 --- /dev/null +++ b/notes/bugfix-22124.md @@ -0,0 +1 @@ +# Replace content of file property editors when a file is dropped onto the field \ No newline at end of file