Michael, do you know why we are doing this at all.
As things stand now, you only cancel right mouse click if you include the events files, so half the examples have right-mouse, half don't.
And we are only doing it in IE5.
Couldn't we better have a generic right-mouse-cancel that can be included if needed?
 
Richard.
----- Original Message -----
Sent: 22 May, 2001 17:44
Subject: Re: [Dynapi-Help] Enabling the right mouse click on a web page

I posted a patch to this previously.

It involves modifying the mouse.js file.

Here's the jist of it:
    - remove lines 195 and 213 (the oncontextmenu bit)
    - insert the following at line 140 (before the return line)
    else if (is.ie) {
    if (evt.type=='rtmouseup')
      document.oncontextmenu=evt.browserReturn?null:function() { return false; };
    else if (evt.type=='mousedown')
      document.onselectstart=evt.browserReturn?null:function() { return false; };
  };

This should now mean that the menu (and text selection) is stopped by cancelling the browser event.

It is done on an event-by-event basis and not in a blanket fashion as is currently the case.

Nadia Human wrote:

Hi, How do I enable the right mouse click on a web page? Thanx,Nadia Human
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

Reply via email to