繁体   English   中英

使用javascript更改软键盘布局

[英]change softkeyboard layout with javascript

我正在寻找有关如何自定义选择文本框后显示在网站内的软键盘布局的示例。 我可以找到针对成熟的android应用而不是在网站内执行此操作的示例。

我希望在软键盘打开时不能显示笑脸或数字/特殊字符键。

  1. 查看您是否可以右键单击浏览器中的softkeyboard元素。

  2. 如果是这样,请单击检查元素,然后查看是否可以找到包含笑脸或数字/特殊字符键的元素。

  3. 然后,您可以构造一个脚本以在页面加载时将其隐藏或删除。

  4. 使用JQuery可能看起来像这样:

     //note: You must place this code in a script tag after you have loaded JQuery. $(document).ready(function(){//begin document ready function //store the id or the class of the key to hide var key = $("#nameOfKeyID"); //hide the key $(key).hide(); //or remove the key //this will remove it from the page //and you will not be able to perform operations on it $(key).remove(); });//end document ready function 

暂无
暂无

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

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