Bug #117
closedfixes for non-local drop behavior
100%
Description
The following fixes are required for non-local drag-and-drops, i.e. where source and destination views are different.
1. When moving the selection from a nested view to a parent view (e.g. when using nested forms), the selection is not deleted in the source view, which effectively creates a copy operation. This unintended behavior results from an inappropriate ordering of insert and delete operations in Containers.TrackToDrop where the insert is done first and as a side effect it can clear the selection used by the delete step.
2. The focus should be set to the drop target.
3. If the selection is not a singleton, all inserts should be grouped together by means of a script.
4. In case of moving within a shared domain, i.e. where the drop source and target have a common undo-stack, there should only be a single 'Moving' operation instead of two operations (Insert + Delete).
Reported by X512 on the BlackBox community forum, 2016-07-11.
Fixes proposed by X512.