使用虚拟键盘时禁用键盘 [英] disable keyboard while using virtual keyboard
本文介绍了使用虚拟键盘时禁用键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在asp.net中使用vb.net
i做虚拟键盘我想在使用虚拟键盘时禁用键盘
如何禁用它?
解决方案
在客户端的ASP.NET中?我希望你永远不会实现这个目标。
但你可以在你的浏览器窗口内完成:
< script type = text / javascript src = http://code.jquery.com/jquery -1.9.1.js > < / script >
< < span class =code-leadattribute> input type = text name = name-field id = 名称字段 >
< < span class =code-leadattribute> script type = text / javascript >
(function(){
(document).keydown(function(e){
e.preventDefault();
});
});
< / script > 跨度>
i am using vb.net in asp.net
i did virtual keyboard and i want to disable the keyboard while using virtual keyboard
how to disable it?
解决方案
In ASP.NET on client side? I hope you never achieve this.
But you can do inside your browser window:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> <input type="text" name="name-field" id="name-field"> <script type="text/javascript">
(function () {
(document).keydown(function(e) { e.preventDefault(); }); }); </script>
这篇关于使用虚拟键盘时禁用键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文