簡體   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