Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default 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 User
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    723
    Vote Rating
    46
      0  

    Default

    You should not crosspost...

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

  3. #3
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,554
    Vote Rating
    1272
      0  

    Default

    Well, this post may be of help for that enter button: http://www.sencha.com/forum/showthre...l=1#post953194
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •