首页 > 解决方案 > 保持虚拟键盘专注

问题描述

我有我正在使用的虚拟键盘(Touch Kiosk Keyboard),它在单击文本框时会保持打开状态。我已经制作了以下功能,以便在模糊时返回文本框。键盘暂时出现,然后消失。我希望我知道这个键盘在寻找什么,有什么想法可以让我保持专注吗?

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
 
 
  <input class="full-width" type="text" id="textbox" name="texbox" onblur="myFunction()"/>
  <script>var _this = this;
                function myFunction() {
                    _this.textbox.focus();
                   
                } </script>
</body>
</html>

标签: javascripthtml

解决方案


推荐阅读