Thanks. It just took a moment to look through the looking-glass and do 
this instead of trying to observe the right-click:

var rightClick = function(e){
        if(Event.isLeftClick(e)) return;
...

and observe the 'click' instead of 'contextmenu'.

Walter

On Apr 23, 2007, at 9:39 AM, David Dashifen Kees wrote:

> Prototype provides a handy isLeftClick() function as a part of the 
> Event
> object extensions that you can use.  Plus, if I understand the API
> correctly, isLeftClick() doesn't actually refer to the left button but
> rather the button that doesn't ivoke the context menu thus providing
> support for both left-handed and right-handed mice.
>
> http://prototypejs.org/api/event/isLeftClick
>
>  -- Dash --
>
> Walter Lee Davis wrote:
>> I have a bit of code that invokes the In Place Editor when you
>> right-click on a div:


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to