Drag & Drop Widget disappears after pressing ESC
is there a function which delegates key events while a Drag & Drop Operation is currently active?
My Widgets just disappears when I press Escape while drag and dropping it. I hoped my NativeOnDragCancelled function would be called but this is not the case :/
Thanks in advance for your answers
asked Aug 28 '17 at 06:28 PM in Bug Reports
If it is of any help, I was able to solve this with a workaround.
Instead of removing the original widget from the parent when D&D operation begins, I keep it in place and unchanged until OnDrop is registered for the operation, and only then perform all the necessary changes. In this case I don't need any extra logic on Cancel events and cancelling via Escape becomes no different to any other way of cancelling the drag. The original widget is used as a payload for the D&D operation so it can be easily referenced.
The only downside I see is visual, as the widget stays in the original place while the operation is ongoing. In my case I made the D&D visual slightly transparent to make it stand out from the original widget and that was it.
answered Dec 28 '17 at 04:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here