Manage initial switch status (and layout?) IPhone keyboards from a web form

I would like to be able to control the initial state of switching the iPhone keyboard from the Javascript tooltip (updates added for web forms). Apparently, the default capital is mostly used by default, but I'm sure I typed / saw the clues that were initially lowercase. I'm also sure I saw custom layouts used on the web.

At the beginning of the search (see updates), no obvious documents or previous answers were found, in addition, saying that the presence of a β€œphone” or β€œzip” in the input class will lead to the appearance of a numeric keypad (although this may have stopped working ) Obviously, "url" or "email" can also select the appropriate layouts. This clearly does not apply to javascript hints and may not work in some versions.

Is there an official source for all this? Does it work in all firmware versions? Has anyone got a general solution for changing keyboard layouts or for that in Javascript hints?

UPDATE For web forms: this from Apple right after the question is posted, as well as this . The question still relates to Javascript hints.

UPDATE 2 Doh! It is also helpful; text text and a search button not mentioned in Apple links. Another relevant information here .

+3
source share
1 answer

How can I control which keyboard is displayed when the user touches a text field? You can control what type of keyboard is displayed when a user touches a text field on a web page. To display the phone keypad, email keypad, or URL keypad, use the tel, email, or url keywords for the type attribute for the input element, respectively. To display the numeric keypad, set the pattern attribute to "[0-9]" or "\ d".

pattern HTML 5 iPhone OS 3.1 . . 15, , , .

15: : : URL: . : :

. http://developer.apple.com/library/safari/#codinghowtos/Mobile/UserExperience/index.html

+1

Source: https://habr.com/ru/post/1725960/


All Articles