1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    2
    Vote Rating
    0
    airportyh is on a distinguished road

      0  

    Default Changing text of the 'Go' Button on Virtual Keyboard

    Changing text of the 'Go' Button on Virtual Keyboard


    Hello, first of all Sencha Touch is great work! Congrats and thanks to the authors!

    I am in the middle of building a form for creating an object in the app. I see that in the form example, you can create buttons docked to the bottom. I will likely only have one button, and I am wondering whether I can make it respond to hitting the 'Go' button on the virtual keyboard to activate the button. Pretty sure this is possible to do in Safari, not sure if it's supported directly in Sencha Touch, but that's besides the point. The more important point is, if I were to do this, I may want to change the 'Go' label to something with more context, like in my case to 'Create'. Is this possible to do?

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,148
    Vote Rating
    673
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I had a quick look around on the web and wasn't able to find anything relevant, but I highly doubt it.

    If javascript had access to modify something like that, you could do lots of malicious things.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Jul 2010
    Posts
    2
    Vote Rating
    0
    airportyh is on a distinguished road

      0  

    Default


    Thanks for the reply. I haven't been able to find much either. What I did find though, was that w/ Sencha Touch, you can register for the 'submit' event by:

    form.on('submit', function(values){
    /* do stuff */
    })

    However, after the submit event, the virtual keyboard stays on the screen and doesn't go away. I doesn't go away because in FormPanel.js, we did a e.preventDefault(), however, that is needed to prevent Safari from actually submitting the page. At this point, it seems that what I am trying to achieve is not possible. I'd love to be proven wrong though.

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    I remember this issue. I think I was able to solve it by calling focus() on document.body or something like that.

Similar Threads

  1. Virtual Keyboard, how to ?
    By bartolomiew in forum Ext GWT: Discussion
    Replies: 6
    Last Post: 14 Feb 2013, 10:47 AM
  2. Virtual keyboard example?
    By DaveC426913 in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 4
    Last Post: 4 Aug 2010, 5:23 AM

Thread Participants: 2

Tags for this Thread