There is an application written in GWT. We consider the case when the user logs in from a device with a touch interface. It is necessary to make the keyboard appear when the focus is not in the edit field (or the like). How to do it?

    1 answer 1

    I can be wrong, but I suppose that in any way.


    The appearance of the keyboard is the responsibility of the application in which your GWT-based application is displayed, that is, in 99% of cases, the browser. Ie, if the browser assumes that input should not occur, then it will not show this keyboard.

    You can, of course, place some invisible or strongly biased input and use js code to focus on it, but I’m not sure how this behavior correlates with what you want to receive.

    • I tried using a div with the property contenteditable . In Android, the tablet works, but in the iPad - no: ( - angry
    • @Trash Well, now, apparently, it remains to come up with some kind of a crutch for Safari. - Costantino Rupert
    • one
      contenteditable supported starting with iOS 5. It’s time for you to update. - angry