Re: [Rails-spinoffs] how to capture event of right mouse click

2006-08-01 Thread Eric Harrison
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:

[Rails-spinoffs] how to capture event of right mouse click

2006-08-01 Thread Grzesiek Slusarek
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