iPhone Mobile Safari:强制打开键盘 [英] iPhone Mobile Safari: Force keyboard open

查看:235
本文介绍了iPhone Mobile Safari:强制打开键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个HTML / CSS / JS(jQuery)iPad应用程序。我有一个按钮,可以在输入表格中滑动。我想将用户集中在输入上,然后启动键盘。

This is an HTML / CSS / JS (jQuery) iPad app. I've got a button, that slides down an input form. I'd like to focus the user on the input, and then launch the keyboard.

这是我正在使用的,但不起作用:

This is what I'm working with, but doesn't work:

$('#myFormField').focus();

确实关注输入,但无法启动键盘。这是不可能的(出于安全原因或其他原因)?

This does indeed focus the input, but fails to launch the keyboard. Is it just not possible (for security reasons or whatever)?

有没有办法强制或模拟用户点击输入(或其他任何事情)?

Is there a way to force or simulate a user tapping the input (or anything for that matter)?

谢谢!

推荐答案

也许这些链接可以帮助您:

Maybe these links can help you:

< a href =http://jgestures.codeplex.com =nofollow noreferrer> http://jgestures.codeplex.com

这篇关于iPhone Mobile Safari:强制打开键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆