javascript - 保持虚拟键盘专注
问题描述
我有我正在使用的虚拟键盘(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>
解决方案
推荐阅读
- r - 仅过滤使用 dplyr 重复的行
- windows - DPAPI 主密钥迁移到新计算机
- python - 使用 Python 访问 Json 变量时出现 cx_Oracle 错误
- java - 更改 BottomNavigationView 中的片段时如何保存数据?
- java - 异或交换代码与java中的临时变量交换代码
- swift - Swift Closures: Must Capture Lists Be Exhaustive?
- javascript - Office.js POST 方法被转换为 GET
- python - Alembic 降级、升级、修订和迁移无济于事
- clonezilla - 如何更改 Clonezilla 默认菜单选择项
- javascript - 为什么javascript`for`循环快速静音/取消静音视频