We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Hide virtual keyboards (IOS& Android): on container click/after input

Home Forums Puzzles Hide virtual keyboards (IOS& Android): on container click/after input

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51371
    sirhc
    Customer

    Hi Verge’rs
    I’m currently working on a 3D project which
    uses text/number input fields:
    Online Demo:
    https://v3d.net/68n
    Works on fine,…..except on mobile devices the keyboard doesn’t go away after input .Is there a a way to force the keyboard to collapse (hopefully through puzzles)?…
    On ‘enter’ key would be nice,…. :unsure:
    Many thanx :rose: for the one who comes up with the anwser…
    Greetz
    Chris

    Technical Artwork Specialist@TBL.nl

    #51496

    Hi,

    You can do that with a little bit of js. The solution is to remove focus from the input element when a user enters a value. If you know the element’s id you can do it like this: document.getElementById('my_input').blur();

    And it’s easy to add that in puzzles:
    input.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.