I already verified there are no paste events for textfield in extjs 4.1. But i donot want that user should be able to paste into this textfield. What other options are available that user is not allowed to paste any value in the textfield. Please note that the textfield allows only numeric values, no chars/special chars or alphabets. Below is the code snippet that i have as of now.
{
xtype:"textfield",
fieldLabel: 'Debit Account',
name:'debitAccount',
id : 'debitacct',
enableKeyEvents:true,
maskRe: /[0-9]/,
allowBlank: false,
allowNegative: false,
maxLength: 9,
enforceMaxLength:true,
listeners : {
specialkey : function(field, e) {
filterBackspaceKey(e);
}
}
}
Any help is appreciated.