如何禁用默认键盘?我只想在我的网页中显示自定义键盘
how to disable default keyboard? i want only the custom keyboard to be displayed in my webpage
当我 click/focus 在文本框上弹出两个键盘并隐藏整个屏幕时,但我只想在我的页面中显示我的自定义键盘。
我认为解决方案是阻止 android-软键盘弹出或禁用它。
我尝试提供 event.stopImmediatepropogation()
和 event.preventDefault()
以防止出现第二个键盘,但它没有用。
谁能帮我阻止 android 软键盘出现。
提前致谢。
终于找到解决方法
我在元素中添加了 "readonly required",它解决了问题
<input type="text" readonly required>
当我 click/focus 在文本框上弹出两个键盘并隐藏整个屏幕时,但我只想在我的页面中显示我的自定义键盘。
我认为解决方案是阻止 android-软键盘弹出或禁用它。
我尝试提供 event.stopImmediatepropogation()
和 event.preventDefault()
以防止出现第二个键盘,但它没有用。
谁能帮我阻止 android 软键盘出现。
提前致谢。
终于找到解决方法
我在元素中添加了 "readonly required",它解决了问题
<input type="text" readonly required>