PDA

View Full Version : detect ctrl/shift on node drop



SunWuKung
23 Feb 2011, 3:50 AM
Hi,
I have a tree panel with draggable nodes.
I wanted to detect ctrl/shift in the beforenodedrop function but all the examples I fund referred to e.ctrlKey and e.shiftKey which were undefined for me.

Could somebody tell me how to do this?
Thx.
SWK

SunWuKung
23 Feb 2011, 3:58 AM
Sorry, posted too soon - I found it:

var evtobj = window.event ? event : e;
if (evtobj.ctrlKey === true) {
....
}