1. #1
    Ext User
    Join Date
    Mar 2008
    Posts
    11
    Vote Rating
    0
    hapershield is on a distinguished road

      0  

    Default 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.

  2. #2
    Ext User tobinharris's Avatar
    Join Date
    Apr 2008
    Location
    Leeds, UK
    Posts
    34
    Vote Rating
    0
    tobinharris is on a distinguished road

      0  

    Default


    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)

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar