how to disable copy/cut/paste option on mgwt MTextBox and MPasswordTextBox

2014-04-02 Thread Arun Kumar
hi I developed an mgwt app with gwt-phonegap ,I installed it in ios device.I want to disable copy cut paste options to my text fields. Is there any possible to do it from css,if not please give me any other solution. thanks in advance, Arun Kumar -- You received this message because

Re: how to disable copy/cut/paste option on mgwt MTextBox and MPasswordTextBox

2014-04-02 Thread Jim Douglas
I disable those events in my code in order to override them and provide enhanced functionality. Just blocking them is generally a bad idea; it annoys the user. But the general approach would be to register for the events you want to block, and call event.preventDefault() to suppress the

Re: how to disable copy/cut/paste option on mgwt MTextBox and MPasswordTextBox

2014-04-02 Thread Jens
GWT doesn't expose ONCUT or ONCOPY, so you'll need some JSNI for those. With GWT 2.6 you don't need JSNI anymore to introduce events that GWT does not know about out of the box. Just extend DomEvent (just like ClickEvent, etc) and use addBitlessDomHandler to register the handler of your