Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Drag & Drop Widget disappears after pressing ESC

Hey guys,

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

Greetings Cloudy

Product Version: UE 4.16
more ▼

asked Aug 28 '17 at 06:28 PM in Bug Reports

avatar image

Cloudy McStrife
465 13 16 38

avatar image Vallynne Dec 27 '17 at 04:35 PM

Hello Cloudy McStrife,

I'm encountering the same issue in 4.18.1. When I press escape my drag and drop operation disappears and Drag Cancelled is not being called leaving me unable to handle the event. Were you able to solve this on your own somehow?

avatar image Cloudy McStrife Dec 28 '17 at 02:05 PM

Unfortunately not. :(

avatar image mirakuru420 Jan 13 '18 at 06:44 PM

Same behavior on my side. 4.18.1

avatar image raianlp Jul 25 '18 at 02:06 PM

The same issue here. I press ESC while drag&dropping and corresponding drag&drop widget disappearch. UE 4.18.3

avatar image lionclopeg Mar 04 '19 at 03:03 AM

Lol. Same on 4.19.2 Is it possible to use On key event to resolve this?

avatar image mirakuru420 Mar 04 '19 at 12:24 PM

4.21.1 The problem still remains.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Dec 28 '17 at 04:14 PM

avatar image

6 2 3

avatar image Cloudy McStrife Dec 29 '17 at 10:47 AM

You could duplicate the Widget. Attach it the the D&D Op and make the original wiget invisible. If you drop it anywhere else you delete the original widget. That could be one way to do it.

My problem is that I don't get any D&D event when ESC is pressed (while dragging). I filled the OnDragCancelled function but unfortunately it won't be called :(

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question