Hi tazz_ben, on the droppable callbacks, there is an onDrop callback. This callback have three parameter: - draggable element, - droppable element and - the event object.
You could get if the shift key is pressed with the event object given by this callback. an exemple: Droppables.add('shopping_cart', { accept: 'products', onDrop: function(drag_elem,drop_elem,_evt) { if(_evt.shiftKey){ /* do action here as the shift key is pressed */ } } }); -- david On 5 fév, 04:25, tazz_ben <b...@wbpsystems.com> wrote: > Forgive me if this is a dumb question and this is some simple property > in script.aculo.us: > > I'm wondering if there is a way on a droppable to detect if the shift > key is down when the object is dropped. I know that there is a > property for shift key off of event, but I've only seen code examples > with this tied to a mouse click. What I really want is to determine > this at the moment its dropped as this would allow the user any time > in the drag on whether or not to use the shift modifier. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---