On Sep 13, 3:08 pm, lineman78 <[email protected]> wrote: > In your onClick method you can call event.preventDefault() to keep the > browser from handling the event.
I already tried that in the doubleclick handler, no luck. Just implemented it in a single-click handler, still no luck. > On Sep 12, 1:29 pm, decitrig <[email protected]> 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 [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.
