1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    0
    Rohit Rathod is on a distinguished road

      0  

    Default how to handle keyboard "enter" and "tap" event on same button.

    how to handle keyboard "enter" and "tap" event on same button.


    hi,

    i am new to this world of sencha touch.
    i want a button to listen on enter key pressed on keyboard as well as on tap event of sencha touch.
    "tap" event for button is working fine its calling addToBucket function only once.
    i have tried giving action event to function addToBucket on keyboard enter button pressed on the panel.
    it works fine for 1st time but afterwards same function is getting called multiple times when enter button is pressed.

    screenPanel: {
    initialize: 'onInitializeScreenPanel',
    action: 'addToBucket'
    },

    how can i restrict this multiple call of same function on enter key pressed or is their any way to handle "Enter" key press event in sencha touch 2...?


    thanks in advance..

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    698
    Vote Rating
    40
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    You should not crosspost...

    See my answer here: http://www.sencha.com/forum/showthre...l=1#post953152

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,735
    Vote Rating
    756
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Well, this post may be of help for that enter button: http://www.sencha.com/forum/showthre...l=1#post953194
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 2

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