Can't you just return false for oncontextmenu ?

On Dec 8, 5:01 am, Alexander <the.malk...@gmail.com> wrote:
> Tried eventPreventDefault?
>
> 2009/12/5 Rob Tanner <caspersg...@gmail.com>
>
>
>
>
>
> > Hi,
>
> > I want to add short context specific help messages when users right-
> > click into a text box.  Figuring out what button the pressed on the
> > mouse is a near no-brainer, but how to disable the default browser
> > response is a puzzler.   I've figured out how to disable right clicks
> > all together using the native interface:
>
> >        public static native void disableContextMenu(Element e) /*-{
> >                e.oncontextmenu = function() { return false; };
> >                }-*/;
>
> > But then I don't see them either.  All I want is to disable the
> > default context menu so that I can roll my own.  Any ideas?
>
> > Thanks,
> > Rob
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2Bunsubs 
> > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Regards,
> Alexander

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to