Hello Webix team!
How to cath paste event to textarea (mouse right click —> paste)?
I need disable enter ‘;’ symbol to textarea. I disable input ‘;’ and cut ‘;’ after ‘Ctrl+V’. But my solution isn’t work with mouse paste.
on:{
‘onKeyPress’: function (code, e) {
if (e.key==’;’)
return false;
},
‘onTimedKeyPress’: function () {
let newv=this.getValue();
if (newv.indexOf(";")!==-1){
let str=newv.replace(/;/g,’’);
this.setValue(str);
}
},
}
Thank you in advance.