Try adding this to your copy of prototype.js. It'll do what you want.

    isRightClick: function(event) {
         return (((event.which) && (event.which == 3)) ||
              ((event.button) && (event.button == 2)));
    },

Enjoy.

-E

On 8/1/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote:
Hi all
Recently I tested google spreadsheet and saw they are used rarely
right click of the mouse button . I start to wonder is it possible to
this with prototype and scriptaculos. Does any know how to achieve
such effect like this? Now prototype support method that check is the
left button of the mouse was clicked, but I can't find any piece of
code that could capture event of right click of the mouse.
Thanks for help
Grzegorz

----------------------------------------------------
Zapraszamy na 13. Bieg św. Dominika - Commercial Union Cup
5 sierpnia 2006 r. Gdańsk - Długi Targ.
Najbardziej prestiżowy Bieg w Polsce! Wielkie atrakcje dla kibiców!
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fd13.html&sid=831


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




--
Eric Ryan Harrison, Developer
model13 Designs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to