Monday, September 13, 2010

Re: clearing or preventing double-click selection

In your onClick method you can call event.preventDefault() to keep the
browser from handling the event.

On Sep 12, 1:29 pm, decitrig <rws...@gmail.com> wrote:
> I'm working on an application that responds to double clicks on text
> labels, and I'd like to either disable double-click text selection or
> clear it from within the event handler. I tried $doc.selection.clear()
> in a native method, but apparently $doc.selection is "not an object" -
> it may be that the selection isn't occurring until after the double-
> click handler is getting called. I did try stopPropagation and
> preventDefault, neither helped.
>
> Any pointers?
>
> --
> decitrig

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment