We have a scenario where we would like to cancel drag operation, if user presses Esc (escape) key on keyboard. Is there any method like cancel, stop, revert... (or any other smart way to implement this functionality using jquery library) which would stop operation and return object being dragged back to it's original position.
Now, the only way to cancel drag operation is to drag object over non-droppable area. But we would really like to cancel drag operation also with escape key pressed.
I think this is not a good solution. Because, what will happen if user is over droppable area? The item being dragged will be placed to droppable area, but it should revert back to it's original position.