The event that is passed along is mousedown, not contextmenu. I am stopping the passed event (which is mousedown) but that does not keep the contextmenu event from firing at all.
Walter On Apr 23, 2007, at 12:26 PM, David Dashifen Kees wrote: > > Can you use Event.stop() to keep the context menu from appearing? > - Dash - > > Walter Lee Davis wrote: >> Meanwhile, tried another tack -- If I change the event to mousedown, >> the isLeftClick test works properly, however the real contextual menu >> pops up too. It's confusing, but not completely awful. Maybe I'll just >> try using a double-click instead... >> >> Walter >> >> On Apr 23, 2007, at 11:39 AM, Walter Lee Davis wrote: >> >> >>> RRRRrrrrrrrr. >>> >>> You are correct, and my initial optimism was due to the fact that my >>> browser had cached the previous script... >>> >>> So it doesn't work at all in either (Mac) browser, and likely doesn't >>> in Windoze either. >>> >>> Back to the drawing board. >>> >>> Do you suppose that the extensions that Richard posted would be a >>> better approach? >>> >>> Walter >>> >>> On Apr 23, 2007, at 11:11 AM, Christophe Porteneuve wrote: >>> >>> >>>> Hey Walter, >>>> >>>> I'm actually not aware of a x-browser way of grabbing right clicks. >>>> >>>> The 'contextmenu' event is not standard AFAIK, and capturing 'click' >>>> to >>>> then use Event.isRightClick (not in trunk yet) seems to be eluded >>>> by a >>>> few browsers. On FF, for instance, the browser doesn't seem to >>>> trigger >>>> this event at all on right clicks. But I confess to not having >>>> dived >>>> into it seriously yet. >>>> >>>> -- >>>> Christophe Porteneuve aka TDD >>>> [EMAIL PROTECTED] >>>> >>>> >>> >> >> >>> >> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
