Flex - Cancel drag operation via keyboard

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-07T08:57:18Z Indexed on 2010/04/07 9:03 UTC
Read the original article Hit count: 265

Filed under:
|
|

Hello

I would like to be able to cancel a drag operation with the Escape key.

The following did not work so far:

  • calling stopDrag() on the component --> nothing happens
  • calling DragManager.acceptDragDrop(null) --> nothing happens
  • calling mx_internal function DragManager.endDrag() --> drag partly stops, the drag proxy image disappears but now the drop indicator shows at row 0, and also there's a null error when finally releasing the mouse

Anybody else had any luck with this? Thanks!

© Stack Overflow or respective owner

Related posts about flex

Related posts about drag