简体   繁体   English

阻止键盘从按钮按下弹出

[英]Stopping a keyboard from popping up from button presses

I have built a small tool that pushes text into a <textarea> with button inputs, you can see it here我已经构建了一个小工具,可以将文本推送到带有按钮输入的<textarea>中,你可以在这里看到

However, on mobile, when a user interacts with those buttons, the keyboard pops up obscuring half the screen.然而,在移动设备上,当用户与这些按钮交互时,键盘会弹出,遮住一半的屏幕。 Is there anyway to stop this?有没有办法阻止这一切?

Try adding a readonly attribute to the textarea.尝试向 textarea 添加readonly属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM