Manually triggering the iPhone/iPad/iPod keyboard from JavaScript

后端 未结 7 1165
[愿得一人]
[愿得一人] 2020-11-28 12:34

I am developing an HTML code editor using simple DIV\'s and capturing events. When I use this on the iPad the keyboard never pops up since i\'m not technically in an editab

7条回答
  •  庸人自扰
    2020-11-28 13:02

    If your code is executed via something that was initiated via a user action then it will work.

    E.g;

    this works (pops keyboard):

    click

    this doesn't work (input gets a border but no keyboard pop):

    
    
    

提交回复
热议问题