防止键盘在iPad webapps上弹出文本框焦点/单击 [英] Prevent keyboard from popping on textbox focus/click in iPad webapps

查看:129
本文介绍了防止键盘在iPad webapps上弹出文本框焦点/单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在iPad应用程序上创建自定义键盘。但每次输入获得焦点时,弹出原生iPad键盘。如何在JavaScript中阻止这种情况。

I am trying to create a custom keyboard on an iPad application. But each time the input get the focus, the native iPad keyboard pops up. How can I prevent this, in JavaScript.

推荐答案

将readonly属性添加到您的输入中,并提供一种不同的方法来填充价值。

add attribute 'readonly' to your input and provide a different means of populating the value.

这篇关于防止键盘在iPad webapps上弹出文本框焦点/单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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