Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
[[ Bug 22124 ]] Replace the content of a file property editor with dr…
Browse files Browse the repository at this point in the history
…opped files

This patch fixes an issue where the file property editor was inserting drag and dropped file
paths rather than replacing the entire content of the field.
  • Loading branch information
montegoulding committed May 31, 2019
1 parent 6f1e63e commit cb48f4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions notes/bugfix-22124.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Replace content of file property editors when a file is dropped onto the field

0 comments on commit cb48f4d

Please sign in to comment.