Re: How can I disable the browser's default right click response?

2009-12-15 Thread Sorinel C
Here you have some solutions: http://ui-programming.blogspot.com/2009/12/gxt-ext-gwt-how-can-i-disable-browsers.html I hope they are good for you! Cheers. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send

Re: How can I disable the browser's default right click response?

2009-12-08 Thread Rob Tanner
Here's a little snippet that doesn't do what I hoped: public static native void disableContextMenu(Element e) /*-{ e.oncontextmenu = function() { return false; }; }-*/; And I call that method immediately before I add the minPanel to the RootPanel:

Re: How can I disable the browser's default right click response?

2009-12-08 Thread Mohamed Mansour
Can't you just return false for oncontextmenu ? On Dec 8, 5:01 am, Alexander wrote: > Tried eventPreventDefault? > > 2009/12/5 Rob Tanner > > > > > > > Hi, > > > I want to add short context specific help messages when users right- > > click into a text box.  Figuring out what button the pressed

Re: How can I disable the browser's default right click response?

2009-12-08 Thread Alexander
Tried eventPreventDefault? 2009/12/5 Rob Tanner > 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'v

How can I disable the browser's default right click response?

2009-12-04 Thread Rob Tanner
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 t