On Tuesday, March 15, 2011 1:42:17 PM UTC+1, John LaBanca wrote:
>
> In your Cell, catch the click event and do the following:
>
> - If shift or ctrl is pressed, ignore the event. The user is opening a
> new window.
> - If the right button was pressed, ignore the event. The user will see
> the context menu.
> - If the left button was pressed, call Event.preventDefault() to
> prevent the page reload in IE, then call History.newItem("myToken").
>
> which can be as easy as:
if (GWT.create(HyperlinkImpl.class).handleAsClick(event)) {
History.newItem(...);
event.preventDefault();
}
See http://code.google.com/p/google-web-toolkit/issues/detail?id=2901#c5
and http://code.google.com/p/google-web-toolkit/issues/detail?id=2901#c5
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.