I've been banging my head against the wall for days trying to get a KeyPress or a KeyDown event to fire on a Sencha Touch textfield.
I'm trying to accomplish two things: 1) Limit the max length to 3 and 2) Ensure that the user is entering only numbers (no letters or special chars)
Is there no way using Javascript to attach these events? I'm using Sencha 2.3.1
Update: I've tried using numberfield and also using maxLength...neither work.
var numberfield =
{
xtype: 'numberfield',
value: textValue,
readOnly: true,
cls: 'opBuyoffPartialCell',
inputCls: 'opBuyoffCenterText',
maxLength: 3,
enforceMaxLength: 3
};