On mercredi 09 décembre 2009, david wrote: > When observing an event with: > Event.observe('mousemove',function(evt){ > if(evt.isLeftClick) alert('left button clicked'); > if(evt.isMiddleClick) alert('middle button clicked'); > if(evt.isRightClick) alert('right button clicked'); > }) > > there is inside the event object some shortcut to know at the moment > the event is fired if a button is clicked. And the same existe in case > of a key pressed.
I have to check again, but in my previous tests, the isLeftClick() always returned true, and other always returned false... -- Frédéric -- 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-scriptacul...@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.