Forum /
Ext JS 1.x - Unsupported /
Ext 1.x: Help & Discussion /
How to get the key stroke in TextFiled
How to get the key stroke in TextFiled
Hi,
In my application, i need to get the keystroke in a text field.
This is required for allowing only some characters in the text field.
How we can do this?
I used as below
var t =new Ext.form.TextField({
width:24,height:20,
listeners: {
render: function(c) {
c.getEl().on('keyup', onChange);
}
}
});
function onChange(e)
{
}
But i dont know how to get the stroked key?
Please let me know.
Ext User
Do you want the keystroke so you can react to it and call a function?
If so, the KeyMap might help:
http://extjs.com/deploy/dev/docs/ (search for KeyMap)
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us