31 Mar 2013 11:04 PM #1
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.
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..
1 Apr 2013 1:59 AM #2
1 Apr 2013 5:43 AM #3
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Well, this post may be of help for that enter button: http://www.sencha.com/forum/showthre...l=1#post953194Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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.