Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1318326
    nathansjcorp
    Participant

    I know this is a trivial question, but when using the search
    Safari mobile search does not work when pressing “done” on the virtual keyboard only works on “GO”

    You can see for yourself on http://demo.theme.co/integrity-1/

    Do you have a quick fix for this, because my client insist on fixing this.

    Thank you!

    #1318441
    Rupok
    Member

    Hi there,

    Thanks for writing in! It’s not a problem of X that needs to be fixed rather that’s how the browser or keyboard works. Some keyboards might not automatically trigger submit by pressing “done” and we can’t control this.

    Hope this makes sense.

    #1318643
    nathansjcorp
    Participant

    Hi
    I think you can try this.

    The char 13 is fired as a keyTyped event, also a keyDown event is fired with the key: Keys.ENTER

    This is where these events are fired https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSInput.java#L415

    You should be able to do if (key == ’13’) (done/enter has been pressed)

    here is another link:http://stackoverflow.com/questions/11161289/mobile-safari-keyboard-form-submission

    Let me know

    #1319246
    Rad
    Moderator

    Hi there,

    Yes, but the mobile keyboard is different from the usual keyboard. It has different key codes, “Go” is simply the representation of “Return” key on the standard keyboard.

    My question is, how do I get “Done” on my keyboard. I’m on my safari and there is no “Done” on the virtual keyboard.

    Thanks!

    #1326898
    nathansjcorp
    Participant

    Ok thanks

    #1326913
    Rue Nel
    Moderator

    You’re welcome!
    If you need anything else we can help you with, don’t hesitate to open another thread.

  • <script> jQuery(function($){ $("#no-reply-1318326 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>