Using the keyboard to start a drag (rather than a mousedown)

Using the keyboard to start a drag (rather than a mousedown)


Hi,
I'm working on a drawing application which has two operations: copy
and move. The problem I am having right now is that I need to
initiate a move by pressing the "m" key rather than be clicking the
mouse and dragging it. (Similarly, pressing the "c" key will clone an
object and then start dragging it). I thought that I could use
something like this:
$(".draggable").trigger("mousedown")
...but I just can't seem to find any way that makes it actually work.
Does anyone have some suggestions? What are the chances that
a .start_dragging() method could be added to draggable objects to
programmatically initiate dragging (i.e. is there any fundamental
design problem that would prevent someone like myself from trying to
add such a method)?
Thanks in advance,
David