hi,
I want to discard the paste event.for this I caught the paste event.
But I'm failing to kill the event. If there is any chance to do it,pls give
me the solution.
I tried event.cancelBubble(true); and event.stopPropagation(); but these
two are not working for my requirement.
My code:
class MyTextBox extends TextBox {
public MyTextBox() {
super();
sinkEvents(Event.ONPASTE);
}
@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if(event.getTypeInt() == Event.ONPASTE){
// Window.alert(":: paste founded::");
//---- now i want to kill my current event.
}
}
}
pls show me the way to achieve my requirement.
thanks in advance
Arun Kumar
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.