Detecting if the iOS virtual keyboard Go key was pressed in Sencha Touch 2

In your controller, simply add a keyup listener to your text field:

  config: {
    control: {
       'membersearchform textfield[name=fname]' : {
           keyup: 'onFieldKeyUp'
        }
     }
   },
   onFieldKeyUp: function(objField,e) {
     if (e.event.keyCode == 13) {
        console.log ('go button was pressed')
      }
    }

 

One thought on “Detecting if the iOS virtual keyboard Go key was pressed in Sencha Touch 2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s