-
23 Jan 2012 9:52 AM #1
Unanswered: How to capture key 'return' press on ios
Unanswered: How to capture key 'return' press on ios
How to capture key 'return' press on ios ?
-
23 Jan 2012 9:55 AM #2
If you are using a Ext.field.Text, you can actually listen to the action event, which is fired when enter/return is pressed.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
23 Jan 2012 10:44 AM #3
now how i can set focus on another textfiled when return key is pressed?
-
23 Jan 2012 10:50 AM #4
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
23 Jan 2012 10:53 AM #5
i try this but dosen´t work
if(event.event.keyCode == 13){
var next = Ext.getCmp('myTextField');
next.focus;
}
-
23 Jan 2012 10:55 AM #6
It's a function so:
Code:if(event.event.keyCode == 13){ var next = Ext.getCmp('myTextField'); next.focus(); }Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
23 Jan 2012 11:04 AM #7
thanks...
works fine on safari, but on ipad dowsen´t work
-
23 Jan 2012 3:26 PM #8
Unfortunately focusing a field in some devices is very flakey. There are sometimes ways you can work around these, but they are generally at the application level. There are a few posts on the subject over on Stack Overflow if you want to take a look.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.


Reply With Quote