Draggable / Droppable cancel action with ESC key

Draggable / Droppable cancel action with ESC key

Hi,

I did a lot of research the last couple of days but can't seem to find the solution...


# Question 1
After I clicked the button of 'move' the <td> becomes draggeble. I listen to the ESC keyevent and then cancel the draggeble option (e.g. 'destroy').

In a dragging action of the <td> (after a click of the move button) I also listen to a ESC key; and the revert the action.
The destroy or disable does not work and unfortunately the Droppable still fires.

Because of the two listeners this also is a challenges (bugs..).

A work around is after the ESC key to addClass('cancelled'). And In in the Droppable make a if statement in the 'accept'.
But then the <td> has the 'cancelled' class and I can't move this to a other folder/location.

Does anyone have a (good) solution?


# Question 2
How can I select multiple items (mousewindow/drag over items) and move/drag all selected items?


# Question 3
How to make the dragging also possible for mobile touch?